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", ->
|
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
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user