Monday, 9 July 2018

post react on heroku

download heroku cli: https://devcenter.heroku.com/articles/heroku-cli

create-react-app $APP_NAME
cd $APP_NAME
git init
heroku create $APP_NAME --buildpack https://github.com/mars/create-react-app-buildpack.git
git add .
git commit -m "Start with create-react-app"
git push heroku master
heroku open



reference:
https://chuanshuoge2.blogspot.com/2018/07/react-deploy-options.html

No comments:

Post a Comment