Heroku Flashcards

1
Q

How to add SSH key to Heroku

A

In terminal:

heroku keys:add

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to create a new Heroku app

A

In the terminal:

heroku create app-name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What do we need to add to the package.json file in order for heroku to run our application

A

A script

“start”:”node src/app.js”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do we need to set the port for running a server on heroku?

A

const port = process.env.PORT || 3000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Checks before deploying on heroku?

A
  1. Start scirpt
  2. Port values
  3. Appi urls
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to push to heroku?

A

git push heroku master

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Heroku setup workflow

A
  1. download heroku to your machine
  2. add ssh key: heroku ssh:add
  3. create new app: heroku create app-name
  4. Setup package.json for deployment
  5. push to github: git push origin master
  6. push to heroku: git push heroku master
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to set environment variables on heroku?

A

heroku config:set VARIABLE_NAME=someValue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How to delete an environment variable?

A

heroku config:unset VARIABLE_NAME

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How to see a list of environment variables?

A

heroku config

How well did you know this?
1
Not at all
2
3
4
5
Perfectly