1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/plume_ynh.git synced 2024-09-03 20:15:54 +02:00

fix port for postgresql

This commit is contained in:
anmol26s 2018-09-08 09:05:40 +05:30
parent fb71d0c7a2
commit 96ca044148

View file

@ -133,7 +133,7 @@ ynh_system_user_create $app $final_path
( cd $final_path && curl -sf -L https://static.rust-lang.org/rustup.sh | sh )
export PATH="$PATH:$final_path/.cargo/bin:$final_path/.local/bin:/usr/local/sbin"
( cd $final_path && cargo build )
( cd $final_path && diesel migration run --database-url postgres://$db_name:$db_pwd@localhost:$port/plume )
( cd $final_path && diesel migration run --database-url postgres://$db_name:$db_pwd@localhost:5432/plume )
#=================================================
# NGINX CONFIGURATION
@ -171,7 +171,7 @@ ynh_add_systemd_config
# Optional, only do it if the database URL is not
# postgres://plume:plume@localhost/plume
export DB_URL=postgres://$db_name:$db_pwd@localhost:$port/plume
export DB_URL=postgres://$db_name:$db_pwd@localhost:5432/plume
# Create the media directory, where uploads will be stored
(cd $final_path && mkdir media )