Last active
August 29, 2015 14:21
-
-
Save corrupt952/31cd16cd8e37e27bd602 to your computer and use it in GitHub Desktop.
SourceTree + Vagrant + Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
vagrant halt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
vagrant status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
vagrant up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment