Skip to content

Instantly share code, notes, and snippets.

View rogeercruz's full-sized avatar
🏠
Working from home

Roger Cruz rogeercruz

🏠
Working from home
View GitHub Profile
@rogeercruz
rogeercruz / deploy-heroku.sh
Last active August 15, 2017 16:39 — forked from mars/create-react-app-on-heroku.sh
Create a React app & deploy to Heroku
heroku create -b https://github.com/heroku/heroku-buildpack-static.git
echo '{ "root": "build/" }' > static.json
sed '/build/d' .gitignore > .gitignore.new && mv .gitignore.new .gitignore
## Build, commit, & deploy
npm run build
git add .
git commit -m "react-create-app on Heroku"
git push heroku master