29
Caesar Chi @clonncd deploy to https://www.heroku.com/ Monday, May 5, 14

node.js app deploy to heroku PaaS

Embed Size (px)

Citation preview

Caesar Chi @clonncd

deploy to

https://www.heroku.com/

Monday, May 5, 14

Install Command line

Monday, May 5, 14

install heroku cli

parts install heroku-cli

https://toolbelt.heroku.com/standalone

Monday, May 5, 14

heroku login

command line input,

Monday, May 5, 14

Use Heroku dashboard

Monday, May 5, 14

https://dashboard.heroku.com/apps

have to login, of courseMonday, May 5, 14

Monday, May 5, 14

Monday, May 5, 14

Monday, May 5, 14

Monday, May 5, 14

git remote add heroku [email protected]:example-test.git

command line input,

Monday, May 5, 14

Set Procfile

Monday, May 5, 14

Procfile

Added a file, called

file content

Monday, May 5, 14

Import RSA keys

Monday, May 5, 14

heroku keys:add ~/.ssh/id_rsa.pubcommand line input,

Monday, May 5, 14

updated, app.js

change port configMonday, May 5, 14

Starting deploy

Monday, May 5, 14

command line input,

Monday, May 5, 14

create a worker for process, only 1 web is ok.

command line input,

Monday, May 5, 14

http://XXXXXXX.herokuapp.com/

command line input,

open browser from local machine

Monday, May 5, 14

Finished

Monday, May 5, 14

heroku dashboard

heroku open

Monday, May 5, 14

Demo github repshttps://github.com/nodejs-tw/example-week1

Monday, May 5, 14

Problem || Issue

Monday, May 5, 14

Make sure

• Your project already use via git

• package.json is required

• dependency should be setting

• Procfile have to named Procfile

• git remote have set to heroku rep in

Monday, May 5, 14

@clonncd

Monday, May 5, 14

Its 201405 ver

• every spec should be followed Heroku

• node.js version should be notice

• logo’s copyright be companys

Monday, May 5, 14