Created
August 28, 2012 18:22
-
-
Save danmartens/3501709 to your computer and use it in GitHub Desktop.
Attempts to fix Rails applications
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
# Only the professor can fix it | |
fixit() { | |
clear; | |
echo -e '\x1B[30;45m'"\n\033[1m Bundle installing... \033[0m\n"; | |
bundle install; | |
echo -e '\x1B[30;45m'"\n\033[1m Migrating database... \033[0m\n"; | |
bundle exec rake db:migrate; | |
echo -e '\x1B[30;45m'"\n\033[1m Clearing Rails cache... \033[0m\n"; | |
rails runner "Rails.cache.clear"; | |
echo -e '\x1B[30;45m'"\n\033[1m Restarting Pow... \033[0m\n"; | |
powder restart; | |
echo -e '\x1B[30;45m'"\n\033[1m Fixed it! \033[0m"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment