Set up local deploy for staging and production envs
Last updated
Was this helpful?
Last updated
Was this helpful?
Create different version of apps on heroku via dashboard
Add buildpack to settings: https://buildpack-registry.s3.amazonaws.com/buildpacks/mars/create-react-app.tgz
If deploying a React app, follow this tutorial:
Add the remote url of each env locally:
Prod:
Staging:
Add to scripts in package.json
View remotes with:
Remove homepage if available in package.json
Add a start script that starts the server
Add domain to project:
Print available domains
Add CNAME plus target to hosting provider
Confirm that domain has been enabled with
ref: