Correct errors in upload / deploy scripts

This commit is contained in:
Andrew Miner
2016-04-05 18:30:21 -07:00
parent 2f6af50d4b
commit 8bb25cd09a
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -263,7 +263,7 @@ module.exports = (grunt)->
grunt.registerTask 'script:deploy:prod', "deploy code by copying to the production branch", -> grunt.registerTask 'script:deploy:prod', "deploy code by copying to the production branch", ->
done = this.async() done = this.async()
grunt.util.spawn cmd:'./scripts/deploy', args:['--production'], opts:{stdio:'inherit'}, (error)-> done(error) grunt.util.spawn cmd:'./scripts/deploy', args:['--prod'], opts:{stdio:'inherit'}, (error)-> done(error)
grunt.registerTask 'script:deploy:staging', "deploy code by copying to the staging branch", -> grunt.registerTask 'script:deploy:staging', "deploy code by copying to the staging branch", ->
done = this.async() done = this.async()
+1 -1
View File
@@ -9,7 +9,7 @@ ENVIRONMENT=""
while [[ "$1" != "" ]]; do while [[ "$1" != "" ]]; do
case "$1" in case "$1" in
"--staging") ENVIRONMENT="staging";; "--staging") ENVIRONMENT="staging";;
"--prod") ENVIRONMENT="prod";; "--prod") ENVIRONMENT="production";;
*) die "Please specify environment: --staging or --prod";; *) die "Please specify environment: --staging or --prod";;
esac esac
shift shift
+5
View File
@@ -1,5 +1,10 @@
#!/bin/bash #!/bin/bash
function die {
echo $*
exit 1
}
if [[ -e "./aws.config" ]]; then if [[ -e "./aws.config" ]]; then
export AWS_CONFIG_FILE="./aws.config" export AWS_CONFIG_FILE="./aws.config"
else else