1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snserver_ynh.git synced 2024-09-03 20:26:22 +02:00

Fix systemd - Ruby path

This commit is contained in:
Fabian Wilkens 2021-05-01 22:47:12 +02:00
parent 78f480a4c8
commit 8532b3274d
No known key found for this signature in database
GPG key ID: 23DFA025BB4E9FAB
3 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ Group=__APP__
WorkingDirectory=__FINALPATH__/live WorkingDirectory=__FINALPATH__/live
Environment=RAILS_ENV=production Environment=RAILS_ENV=production
Environment="PORT=__PORT__" Environment="PORT=__PORT__"
ExecStart=/opt/rbenv/versions/__RUBY_VERSION__/bin/bundle exec rails server ExecStart=__RBENV_ROOT__/versions/__APP__/bin/bundle exec rails server
ExecReload=/bin/kill -SIGUSR1 $MAINPID ExecReload=/bin/kill -SIGUSR1 $MAINPID
StandardOutput=append:/var/log/__APP__/__APP__.log StandardOutput=append:/var/log/__APP__/__APP__.log
StandardError=append:/var/log/__APP__/__APP__.log StandardError=append:/var/log/__APP__/__APP__.log

View file

@ -210,7 +210,7 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=4
# Create a dedicated systemd config # Create a dedicated systemd config
ynh_add_systemd_config --others_var="\ ynh_add_systemd_config --others_var="\
port \ port \
RUBY_VERSION \ RBENV_ROOT \
" "
#================================================= #=================================================

View file

@ -310,7 +310,7 @@ ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
# Create a dedicated systemd config # Create a dedicated systemd config
ynh_add_systemd_config --others_var="\ ynh_add_systemd_config --others_var="\
port \ port \
RUBY_VERSION \ RBENV_ROOT \
" "
#================================================= #=================================================