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 65a6d407d4
commit 54921f9ae8
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@ Description=__APP__ social network
After=network.target postgresql.service After=network.target postgresql.service
[Service] [Service]
Environment="MIX_ENV=prod"
User=__APP__ User=__APP__
WorkingDirectory=__FINALPATH__/__APP__ WorkingDirectory=__FINALPATH__/__APP__
Environment="HOME=__FINALPATH__" 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" 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_ENV=prod mix local.hex --force )
( cd $final_path/$app && sudo -u "$app" mix deps.get ) ( 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 # SETUP SSOWAT