Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Meteor commands launcher
- PS3='Please select what you want to do: '
- 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")
- select opt in "${options[@]}"
- do
- case $opt in
- "Launch Meteor without settings")
- meteor
- break
- ;;
- "Launch Meteor with Development settings")
- meteor --settings settings-development.json
- break
- ;;
- "Launch meteor with Staging settings")
- meteor --settings settings-staging.json
- break
- ;;
- "Launch meteor with Production settings")
- exec meteor --settings settings-production.json
- break
- ;;
- "Setup the deployment on the Staging server")
- exec 2>&1
- cd deploy/staging
- mup setup
- break
- ;;
- "Deploy the application to the Staging server")
- exec 2>&1
- cd deploy/staging
- mup deploy
- break
- ;;
- "Setup the deployment on the Production server")
- exec 2>&1
- cd deploy/production
- mup setup
- break
- ;;
- "Deploy the application to the Production server")
- exec 2>&1
- cd deploy/production
- mup deploy
- break
- ;;
- "Reset Meteor")
- meteor reset
- break
- ;;
- "Quit the launcher")
- break
- ;;
- *) echo invalid option;;
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement