-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
31 lines (28 loc) · 1.21 KB
/
Copy pathindex.html
File metadata and controls
31 lines (28 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html >
<html>
<head>
<title>Deploy in 5 minutes</title>
</head>
<body>
<!-- PUT YOUR INDEX.HTML CONTENT HERE -->
<h1>G'day! </h1>
<p>Directions on how to deploy a Node/Express app on Heroku in minutes:</p>
<img src="http://www.gifmambo.com/media/22589_explosion-cat-amazing-omg-reactions.gif">
<ol>
<li>First make sure you have the Heroku Toolbelt installed https://toolbelt.heroku.com/</li>
<li>Make a new repo on Github</li>
<li>Clone down the repo locally</li>
<li>cd into the repo</li>
<li>npm init</li>
<li>Fill in the blanks, and for "entry point" enter "server.js"</li>
<li>npm install --save express</li>
<li>Copy and paste the contents of my server.js file into your own server.js file</li>
<li>create an index.html page, feel free to copy and paste mine</li>
<li>add a Procfile to the root level with the following text: web: node server.js</li>
<li>add a .gitignore file with: node_modules</li>
<li>git add, commit, and push to your origin master</li>
<li>in the terminal: heroku create _____ (where the blank is the name of the app that will be ____.herokuapp.com)</li>
<li>in the terminal: git push heroku master</li>
</ol>
</body>
</html>