diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 1365fec7c..83292fc3d 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -159,6 +159,8 @@ module.exports = (grunt)-> grunt.registerTask 'deploy:prod', ['build', 'uglify', 'compress', 'copy:assets_dist', 'script:deploy:prod'] + grunt.registerTask 'deploy:staging', ['build', 'uglify', 'compress', 'copy:assets_dist', 'script:deploy:staging'] + grunt.registerTask 'prepublish', ['clean', 'coffee'] grunt.registerTask 'start', ['build', 'script:start'] diff --git a/scripts/deploy b/scripts/deploy index 0bf97cea0..119806aa7 100755 --- a/scripts/deploy +++ b/scripts/deploy @@ -12,6 +12,7 @@ while [[ "$1" != "" ]]; do "--prod") ENVIRONMENT="prod";; *) die "Please specify environment: --staging or --prod";; esac + shift done git push \