Skip to content

Instantly share code, notes, and snippets.

@RobertoBarros
Last active August 29, 2015 13:57
Show Gist options
  • Save RobertoBarros/9750444 to your computer and use it in GitHub Desktop.
Save RobertoBarros/9750444 to your computer and use it in GitHub Desktop.
Executando foreman export para um usuário que não é root
sudo env PATH=$PATH foreman export upstart /etc/init -f Procfile-name -a app-name -u deployer
#https://github.com/sstephenson/rbenv/issues/127
# /etc/profile.d/rbenv.sh
export RBENV_ROOT=/home/deployer/.rbenv/versions/2.1.0
export PATH="${RBENV_ROOT}/bin:$PATH"
eval "$(rbenv init -)"
#http://stackoverflow.com/a/19071349/8581
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment