Skip to content

Commit

Permalink
chore(prod): Update configuration for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
kimobrian committed Mar 31, 2018
1 parent 5d60073 commit d792af9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .circleci/setup-heroku.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
git remote add heroku https://git.heroku.com/wire-front-staging.git
git remote add heroku https://git.heroku.com/wire-front-develop.git
wget https://cli-assets.heroku.com/branches/stable/heroku-linux-amd64.tar.gz
sudo mkdir -p /usr/local/lib /usr/local/bin
sudo tar -xvzf heroku-linux-amd64.tar.gz -C /usr/local/lib
Expand All @@ -18,13 +18,13 @@ EOF
ssh-keyscan -H heroku.com >> ~/.ssh/known_hosts

chmod 600 ~/.netrc
if [ "${CIRCLE_BRANCH}" = "staging" ] || [ "${CIRCLE_BRANCH}" = "deployment" ] ;
if [ "${CIRCLE_BRANCH}" = "staging" ] || [ "${CIRCLE_BRANCH}" = "deployment" ] || [ "${CIRCLE_BRANCH}" = "develop" ] ;
then
git config --global user.email "wire@andela.com"
git config --global user.name "Wire"
git add -f dist server.js Procfile
git status
git commit -m "Deployment: Add dist folder and server"
git push git@heroku.com:wire-front-staging.git ${CIRCLE_BRANCH}:master -f
git push git@heroku.com:wire-front-develop.git ${CIRCLE_BRANCH}:master -f
heroku restart
fi
2 changes: 1 addition & 1 deletion webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = merge(common, {
}),
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify('staging')
'NODE_ENV': JSON.stringify('production')
}
}),
new CopyWebpackPlugin([
Expand Down

0 comments on commit d792af9

Please sign in to comment.