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:
parent
78f480a4c8
commit
8532b3274d
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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 \
|
||||||
"
|
"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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 \
|
||||||
"
|
"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue