updated processes.json, added app.json for non ec2 instances
This commit is contained in:
parent
6ac4c34c67
commit
111b4a1bb0
21
app.json
Normal file
21
app.json
Normal file
@ -0,0 +1,21 @@
|
||||
[
|
||||
{
|
||||
"name" : "node-app",
|
||||
"cwd" : "/home/ubuntu/bin/www/",
|
||||
"script" : "app.js",
|
||||
"log_date_format" : "YYYY-MM-DD HH:mm Z",
|
||||
"merge_logs" : false,
|
||||
"watch" : false,
|
||||
"exec_interpreter" : "node",
|
||||
"exec_mode" : "fork_mode",
|
||||
"env":
|
||||
{
|
||||
"NODE_ENV" : "production",
|
||||
"RPC_HOST" : "localhost",
|
||||
"RPC_PORT" : "8080",
|
||||
"INSTANCE_NAME" : "",
|
||||
"WS_SERVER" : "wss://eth-netstats.herokuapp.com",
|
||||
"WS_SECRET" : "eth-net-stats-has-a-secret",
|
||||
}
|
||||
}
|
||||
]
|
@ -78,7 +78,7 @@ cd ~/bin
|
||||
cd www
|
||||
git pull
|
||||
|
||||
[[ ! -f ~/bin/processes.json ]] && cp -b ./processes.json ./..
|
||||
[[ ! -f ~/bin/processes.json ]] && cp -b ./processes-ec2.json ./../processes.json
|
||||
|
||||
npm install
|
||||
sudo npm install pm2 -g
|
||||
|
Loading…
Reference in New Issue
Block a user