Skip to content

Commit

Permalink
include NODE_ENV in production deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
macfarlandian authored May 23, 2018
1 parent 1bb15e7 commit db9310b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion _production-publish.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# for the production site, we want production builds!
# this will include Google Analytics (and maybe other stuff?)
NODE_ENV=production
# delete the gh-pages branch and then recreate it as an orphan (untracked) branch
git branch -D gh-pages
git checkout --orphan gh-pages
Expand All @@ -24,4 +27,7 @@ git commit -m "deploy"
# !!! Never push --force on any public branch besides gh-pages!
git push --set-upstream origin gh-pages --force

echo "http://openbudgetoakland.org updated"
echo "http://openbudgetoakland.org updated"
# set this back to development so we don't go
# accidentally running prod code in dev environments
NODE_ENV=development

0 comments on commit db9310b

Please sign in to comment.