tab-tracker icon indicating copy to clipboard operation
tab-tracker copied to clipboard

How to deploy this project?

Open mikicorl opened this issue 7 years ago • 3 comments

Please tell me how to deploy(heroku or AWS)🙇

mikicorl avatar Nov 11 '17 06:11 mikicorl

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! 🎉

How to Deploy tab-tracker

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 avatar Feb 27 '18 07:02 cedricium

@cedricium Looking forward to the DO steps. Have you made any progress that way?

richcorbs avatar Apr 20 '18 02:04 richcorbs

@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

peacefulseeker avatar Apr 21 '18 22:04 peacefulseeker