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

Added Environment=MIX_ENV=prod in systemd

This commit is contained in:
anmol 2018-11-05 18:36:27 +05:30
parent 6e591c582a
commit 60c12a37ad
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@ Description=__APP__ social network
After=network.target postgresql.service
[Service]
Environment="MIX_ENV=prod"
User=__APP__
WorkingDirectory=__FINALPATH__/__APP__
Environment="HOME=__FINALPATH__"

View file

@ -159,7 +159,7 @@ ynh_replace_string "__DB_PWD__" "$db_pwd" "$final_path/$app/config
chown -R "$app":"$app" "$final_path"
( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix local.hex --force )
( cd $final_path/$app && sudo -u "$app" mix deps.get )
( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix ecto.migrate )
( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix ecto.migrate --force )
#=================================================
# SETUP SSOWAT