Skip to content

Commit 95f29d1

Browse files
Update hosting-notes.md
1 parent e1bde46 commit 95f29d1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

hosting-notes.md

+16
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,19 @@ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
160160
sudo apt-get install -y nodejs
161161
node --version
162162
```
163+
164+
### Add node process to Supervisor
165+
```
166+
/etc/supervisor/conf.d/node-project.conf
167+
168+
[program:node-project]
169+
directory=/path/to/node/project/dir #containing package.json
170+
command=npm start --production
171+
autostart=true
172+
autorestart=true
173+
stderr_logfile=/var/log/node-project.err.log
174+
```
175+
176+
`sudo supervisorctl`
177+
`reread`
178+
`update`

0 commit comments

Comments
 (0)