-
Create heroku app
-
Change Buildpacks to heroku/nodejs in Settings
-
Change Deployment method to Github,connect to Github repo(you can also use heroku git)
-
Choose server branch and enable Automatic deploy
-
heroku will run start script after build succeeded which you need to add in to your package.json file scripts.
"scripts": { "start": "node app.js" },
add create-react-app heroku-build-pack
- Choose client branch and enable Automatic deploy