Correct errors in upload / deploy scripts
This commit is contained in:
+1
-1
@@ -263,7 +263,7 @@ module.exports = (grunt)->
|
||||
|
||||
grunt.registerTask 'script:deploy:prod', "deploy code by copying to the production branch", ->
|
||||
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", ->
|
||||
done = this.async()
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ ENVIRONMENT=""
|
||||
while [[ "$1" != "" ]]; do
|
||||
case "$1" in
|
||||
"--staging") ENVIRONMENT="staging";;
|
||||
"--prod") ENVIRONMENT="prod";;
|
||||
"--prod") ENVIRONMENT="production";;
|
||||
*) die "Please specify environment: --staging or --prod";;
|
||||
esac
|
||||
shift
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
function die {
|
||||
echo $*
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [[ -e "./aws.config" ]]; then
|
||||
export AWS_CONFIG_FILE="./aws.config"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user