Guest User

Untitled

a guest
Dec 11th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. # Only the professor can fix it
  2.  
  3. fixit() {
  4. clear;
  5.  
  6. echo -e '\x1B[30;45m'"\n\033[1m Bundle installing... \033[0m\n";
  7. bundle install;
  8.  
  9. echo -e '\x1B[30;45m'"\n\033[1m Migrating database... \033[0m\n";
  10. bundle exec rake db:migrate;
  11.  
  12. echo -e '\x1B[30;45m'"\n\033[1m Clearing Rails cache... \033[0m\n";
  13. rails runner "Rails.cache.clear";
  14.  
  15. echo -e '\x1B[30;45m'"\n\033[1m Restarting Pow... \033[0m\n";
  16. powder restart;
  17.  
  18. echo -e '\x1B[30;45m'"\n\033[1m Fixed it! \033[0m";
  19. }
Add Comment
Please, Sign In to add comment