mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Change position of cd
so that rvm gemset is loaded
I got an error in my production environment because it was not loading the right ruby and gemset.
This commit is contained in:
parent
3bf0e7605f
commit
083400c698
1 changed files with 1 additions and 2 deletions
|
@ -38,8 +38,6 @@ exec /bin/bash <<'EOT'
|
|||
# set HOME to the setuid user's home, there doesn't seem to be a better, portable way
|
||||
export HOME="$(eval echo ~$(id -un))"
|
||||
|
||||
cd $app
|
||||
|
||||
if [ -d "$HOME/.rbenv/bin" ]; then
|
||||
export PATH="$HOME/.rbenv/bin:$PATH"
|
||||
elif [ -f /etc/profile.d/rvm.sh ]; then
|
||||
|
@ -57,6 +55,7 @@ exec /bin/bash <<'EOT'
|
|||
# chruby 2.0.0
|
||||
fi
|
||||
|
||||
cd $app
|
||||
logger -t puma "Starting server: $app"
|
||||
|
||||
exec bundle exec puma -C config/puma.rb
|
||||
|
|
Loading…
Reference in a new issue