11. Overview of Project Deployment Using Heroku
For the this week we will set environment variables whole project. The process core module of Node.js provides the env property which hosts all the environment variables that were set at the moment the process was started.
Then deployment of our project,
Deployment like Represents the software you are deploying (such as a web
application), the releases of the software deployed and the environments that
they will be deployed to throughout the lifecycle.
Deploying to Production with Git
Our first method is not only the most common, but also the simplest: pushing code from a Git repository to a Heroku app. You simply add your Heroku app as a remote to an existing Git repository, then use git push to send your code to Heroku. Heroku then automatically builds your application and creates a new release.
Because this method requires a developer with full access to manually push code to production, it's better suited for pre-production deployments or for projects with small, trusted teams.
Pros:
- Simple to add to any Git-based workflow
- Supports Git submodules
Cons:
- Requires access to both the Git repository and Heroku app
Comments
Post a Comment