tab-tracker
tab-tracker copied to clipboard
How to deploy this project?
Please tell me how to deploy(heroku or AWS)🙇
Hey everyone, was scratching my head for the longest time trying to figure out how to deploy this fullstack app and after figuring it out, decided to write a guide for you all. I will say it's probably not the most efficient way to deploy the app, but it definitely works. Hope this helps! 🎉
cc. @codyseibert - would you like me to open a PR with this and add it to a docs/
directory or maybe we can setup a wiki for this repo?
Edit: the guide currently goes over deploying to Heroku, but steps for deploying to DigitalOcean are also planned.
@cedricium Looking forward to the DO steps. Have you made any progress that way?
@cedricium - Much thanks. Have some improvements on your deployment. Here is my repo with all files prepared for deployment on Heroku. https://github.com/peacefulseeker/tab-tracker Please notice major changes, additionally to @cedricium ones:
- Check the global API_URL set in webpack. Useful, because you can use Api.js baseUrl dynamically https://github.com/peacefulseeker/tab-tracker/commit/a4c8aa05f39c3fe0d552059fc3e1e804b4e6509d And then use it in client build script
- You will need to set the producton flag to development not move all the packages in dependenices:
heroku config:set NODE_ENV=development
. - Check node version first and set appropriate in root package.json https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
P.S.
use heroku open
in order to open your recently created app in browser after pushing changes to heroku server.
use deploy.sh
in order to faster deploy on heroku. Command from bash(root): sh deploy.sh