File tree 1 file changed +52
-0
lines changed
1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Deploying the Goof app to Heroku
2
+
3
+ ## Step-by-step tutorial
4
+
5
+ 1 . Sign-up to a free plan at heroku (https://www.heroku.com )
6
+ 2 . Install the ` heroku ` CLI. If you're on a macOS:
7
+
8
+ ```
9
+ brew install heroku/brew/heroku
10
+ ```
11
+
12
+ 3 . Authenticate to Heroku and follow the instructions with the following command:
13
+
14
+ ```
15
+ heroku login
16
+ ```
17
+
18
+
19
+ 4 . Change directories to the goof/ app repository you cloned/forked
20
+ 5 . Create a heroku app:
21
+
22
+ ```
23
+ heroku create
24
+ ```
25
+
26
+ 6 . You'll have to update a Credit Card number at https://heroku.com/verify in order to enable the MongoDB addon next.
27
+
28
+ 7 . Add the MongoDB addon:
29
+
30
+ ```
31
+ heroku addons:create mongolab:sandbox
32
+ ```
33
+
34
+ 9 . Push the Goof app to be deployed on the heroku platform
35
+
36
+ ```
37
+ git push heroku master
38
+ ```
39
+
40
+ ## Trouble-shooting
41
+
42
+ - If you need to inspect the logs
43
+
44
+ ```
45
+ heroku logs --tail
46
+ ```
47
+
48
+ - If you need to manually restart the deployed app:
49
+
50
+ ```
51
+ heroku ps:scale web=1
52
+ ```
You can’t perform that action at this time.
0 commit comments