2. Heroku Deployment Checklist
First Time Deploy
Create Heroku Account
Commit codebase to git
Install Heroku CLI and create app
Deploy app with git
Heroku deploys project
Commit codebase with git
Deploy App with git
Subsequent Deployment
3. Deployment Checklist
Dynamic Port
Binding
Specify Node
Environment
Specify Start
Script
Create .gitignore
file
Heroku tells which port our app will use,
so we need to make sure we listen to the
post they tell us to
We want to use a specific version of
node, so we need to tell heroku which
version we want
Instruct Heroku what command to run
to start out server running
We don’t want to include
dependencies, Heroku will do that for
us
5. create new app using heroku
$heroku login
Provide heroku credentials email-id and pwd
To create app
$heroku create
o/p will be 2 links -
a) Address to navigate to app using browser
b) Deployment Target - a git repo that we can push our local server data to
6. create new app using heroku
$git remote add heroku <---heroku git repo---->
$git push heroku master
7. create new app using heroku
$git remote add heroku <---heroku git repo---->
$git push heroku master