Skip to content

Instantly share code, notes, and snippets.

@corrupt952
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corrupt952/31cd16cd8e37e27bd602 to your computer and use it in GitHub Desktop.
Save corrupt952/31cd16cd8e37e27bd602 to your computer and use it in GitHub Desktop.
SourceTree + Vagrant + Rails
#!/bin/sh
vagrant halt
#!/bin/sh
vagrant ssh -c "cd /vagrant; bundle install; if [ -r tmp/pids/server.pid ]; then kill -9 `cat tmp/pids/server.pid`; rm tmp/pids/server.pid; fi; bundle exec rails server -d --bind=0.0.0.0 && cat tmp/pids/server.pid"
#!/bin/sh
vagrant status
#!/bin/sh
vagrant up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment