Skip to content

Commit c0d2d5c

Browse files
README formatting cleanup.
1 parent aac3a15 commit c0d2d5c

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

README.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ Create the conf file: Where nodeapp is the name of your app's directory:
111111

112112
Make it executable for the user group containing the www-data and your deploy users:
113113

114-
```
115-
$ chmod u+x conf-file // similar to this
116-
```
114+
```
115+
$ chmod u+x conf-file // similar to this
116+
```
117117

118118

119119
Set the proper Linux runlevels. Odd levels are for shutdown-related stuff, and even levels are for startup-related stuff. You'll also need to setuid to your deploy user and set the proper directory :
@@ -134,19 +134,22 @@ Make it executable for the user group containing the www-data and your deploy us
134134

135135
Reboot the web server:
136136

137-
138-
$ sudo nginx -s reload
137+
```
138+
$ sudo nginx -s reload
139+
```
139140

140141
Spawn the daemon:
141142

143+
```
144+
$ sudo service nodeapp start
145+
```
142146

143-
$ sudo service nodeapp start
144147

145148
The npm script
146149

147-
148-
$ npm run deploy
149-
150+
```
151+
$ npm run deploy
152+
```
150153

151154
will deploy changes. Make sure that you don't follow the standard "npm" instructions of placing your binary, also known as deployscript.sh or scpscript.sh, in project_root/node_modules/.bin/scpscript.sh, along with "scripts": { "deploy": "scpscript.sh" } because *node_modules is git-ignored.* So place that script in project root, "scripts": { "deploy": "./scpscript.sh" }
152155

@@ -155,15 +158,18 @@ And test this by cloning into a new directory, pulling down changes, and running
155158

156159
# Final result: public IP and curl results for AWS:
157160

158-
$ curl -X POST -d
159-
name=GobBluthBeesHowHardCanItBe
160-
http://54.148.122.112:5001/foo
161-
-H "Content-Type: text/plain"
161+
```
162+
$ curl -X POST -d
163+
name=GobBluthBeesHowHardCanItBe
164+
http://54.148.122.112:5001/foo
165+
-H "Content-Type: text/plain"
166+
```
162167

163168
Response received:
164169

165-
name=GobBluthBeesHowHardCanItBe
166-
170+
```
171+
name=GobBluthBeesHowHardCanItBe
172+
```
167173

168174
Success!
169175

0 commit comments

Comments
 (0)