Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of https://github.com/mkocher/chef_deploy

  • Loading branch information...
commit 6e482f7f1210014c851e3ade84dd3993bfe8447c 2 parents 50725d0 + 992a578
@mkocher authored
View
5 bootstrap.sh
@@ -38,6 +38,7 @@ cat <<'BOOTSTRAP_AS_USER' > /home/$APP_USER/bootstrap_as_user.sh
set -e
export APP_USER=$1
+cd ~
mkdir -p /home/$APP_USER/rvm/src
curl -Lskf http://github.com/wayneeseguin/rvm/tarball/156d0b42feba4922ad04 | tar xvz -C/home/$APP_USER/rvm/src --strip 1
@@ -53,7 +54,7 @@ rvm_gemset_create_on_use_flag=1
RVMRC_CONTENTS
BOOTSTRAP_AS_USER
-echo "app user at the end: $APP_USER"
chmod a+x /home/$APP_USER/bootstrap_as_user.sh
-su - $APP_USER /home/$APP_USER/bootstrap_as_user.sh $APP_USER
+su $APP_USER /home/$APP_USER/bootstrap_as_user.sh $APP_USER
+echo "finished"
rm /home/$APP_USER/bootstrap_as_user.sh
View
2  chef/cookbooks/joy_of_cooking/recipes/application.rb
@@ -56,7 +56,7 @@
export RAILS_ENV=staging
source /home/mkocher/.rvm/scripts/rvm
rvm use ruby-1.8.7-p299@captest
-exec /command/setuidgid mkocher rackup -p 3000
+exec /command/setuidgid mkocher unicorn -p 3000
}
mode "0755"
end
Please sign in to comment.
Something went wrong with that request. Please try again.