-
Notifications
You must be signed in to change notification settings - Fork 46
Heroku
Gaurav Walia edited this page Oct 23, 2021
·
6 revisions
A best option for the beginner for deployment of MERN stack app
If you are following this project from a long time, then you know that by default we were having this template in the project.
- Mostly used by beginners
- for
development
we have the scriptyarn run dev:mern
to develop and run the whole MERN stack application locally - for
testing
we support scriptyarn run test
to test the MERN stack application - for
deployment
we haveProcFile
that will be used for deployment inproduction
with the help of Heroku CLI - Doesn't support
automation
as you have to deploy with Heroku CLI every time - Used mostly when we only have
master/main
branch - You can use this approach with branching as well
- Example: React-Todo-App
- Mostly used by beginners/Intermediate devs
- Use master/main branch as a production
- Use dev as development branch where you will merge all the feature branches
- for
development
we have the scriptyarn run dev:mern
to develop and run the whole MERN stack application locally - for
testing
we support scriptyarn run test
to test the MERN stack application - Supports
GitHub Actions Workflow
for CI - For Heroku Integration you have to give access to the GitHub repository from Heroku
- for
deployment
we haveHeroku Integration with GitHub
usingProcFile
for automated deployment - Example: Free-Algorithms-Books-website
- Mostly used by Intermediate/Advanced devs
- Use master/main branch as a production
- Use dev as development branch where you will merge all the feature branches
- for
development
we have the scriptyarn run dev:mern
to develop and run the whole MERN stack application locally - for
testing
we support scriptyarn run test
to test the MERN stack application - for
deployment
we haveGithub Actions workflow
usingProcFile
for automated deployment - Supports
GitHub Actions Workflow
for CI/CD using akhileshns/heroku-deploy workflow - Example: HacktoberFest21
Use of heroku.yml
©️ GauravWalia19 2020-21 | Built with using stack |