Created
November 1, 2016 19:26
-
-
Save jpopesculian/38560451ce0914c197ca72e08042b64a to your computer and use it in GitHub Desktop.
Helpful script to get rails app branch up and running in production mode
This file contains hidden or 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/bash | |
PORT=8080 | |
DIR=$HOME/Development/single-ops-prod | |
rm -rf $DIR | |
git worktree add --detach $DIR | |
cd $DIR | |
RAILS_ENV=production | |
bundle exec rake assets:precompile | |
bundle exec rails server -p $PORT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment