Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. #!/bin/bash
  2. # Meteor commands launcher
  3.  
  4. PS3='Please select what you want to do: '
  5. options=("Launch Meteor without settings" "Launch Meteor with Development settings" "Launch Meteor with Staging settings" "Launch Meteor with Production settings" "Setup the deployment on the Staging server" "Deploy the application to the Staging server" "Setup the deployment on the Production server" "Deploy the application to the Production server" "Reset Meteor" "Quit the launcher")
  6. select opt in "${options[@]}"
  7. do
  8. case $opt in
  9. "Launch Meteor without settings")
  10. meteor
  11. break
  12. ;;
  13. "Launch Meteor with Development settings")
  14. meteor --settings settings-development.json
  15. break
  16. ;;
  17. "Launch meteor with Staging settings")
  18. meteor --settings settings-staging.json
  19. break
  20. ;;
  21. "Launch meteor with Production settings")
  22. exec meteor --settings settings-production.json
  23. break
  24. ;;
  25. "Setup the deployment on the Staging server")
  26. exec 2>&1
  27. cd deploy/staging
  28. mup setup
  29. break
  30. ;;
  31. "Deploy the application to the Staging server")
  32. exec 2>&1
  33. cd deploy/staging
  34. mup deploy
  35. break
  36. ;;
  37. "Setup the deployment on the Production server")
  38. exec 2>&1
  39. cd deploy/production
  40. mup setup
  41. break
  42. ;;
  43. "Deploy the application to the Production server")
  44. exec 2>&1
  45. cd deploy/production
  46. mup deploy
  47. break
  48. ;;
  49. "Reset Meteor")
  50. meteor reset
  51. break
  52. ;;
  53. "Quit the launcher")
  54. break
  55. ;;
  56. *) echo invalid option;;
  57. esac
  58. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement