Skip to content

Instantly share code, notes, and snippets.

@richardkmichael
Created September 7, 2012 16:20
Show Gist options
  • Select an option

  • Save richardkmichael/3667522 to your computer and use it in GitHub Desktop.

Select an option

Save richardkmichael/3667522 to your computer and use it in GitHub Desktop.
Bundle wrapper for `bundle exec passenger start` standalone.
#!/usr/bin/env bash
if [[ -s "/home/deployer/.rvm/environments/ruby-1.9.3-p194@infrastructureapp" ]]
then
source "/home/deployer/.rvm/environments/ruby-1.9.3-p194@infrastructureapp"
cd "/home/deployer/apps/infrastructureapp/current"
exec bundle "$@"
else
echo "ERROR: Missing RVM environment file: '/home/deployer/.rvm/environments/ruby-1.9.3-p194@infrastructureapp'" >&2
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment