Merge pull request #45 from cubedro/develop

Fixed time update cron
This commit is contained in:
Marian OANCΞA 2015-04-04 02:03:35 +03:00
commit 7913ff4bce
2 changed files with 37 additions and 36 deletions

View File

@ -46,11 +46,11 @@ sudo npm install pm2 -g
[[ ! -f ~/bin/processes.json ]] && cp -b ./processes.json ./..
# set up time update cronjob
cat > /etc/cron.hourly/ntpdate << EOF
sudo bash -c "cat > /etc/cron.hourly/ntpdate << EOF
#!/bin/sh
sudo service ntp stop
sudo ntpdate -s ntp.ubuntu.com
sudo service ntp start
EOF
EOF"
sudo chmod 755 /etc/cron.hourly/ntpdate

View File

@ -1,36 +1,37 @@
[
{
"name" : "eth",
"cwd" : "~/bin/www/",
"script" : "bin/eth.sh",
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"log_file" : "~/logs/eth-log.log",
"out_file" : "~/logs/eth-out.log",
"error_file" : "~/logs/eth-err.log",
"merge_logs" : false,
"watch" : false,
"exec_interpreter" : "bash",
"exec_mode" : "fork_mode"
},
{
"name" : "node-app",
"cwd" : "~/bin/www/",
"script" : "app.js",
"log_file" : "~/logs/node-app-log.log",
"out_file" : "~/logs/node-app-out.log",
"error_file" : "~/logs/node-app-err.log",
"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",
}
}
{
"name" : "eth",
"cwd" : "~/bin/www/",
"script" : "bin/eth.sh",
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"log_file" : "~/logs/eth-log.log",
"out_file" : "~/logs/eth-out.log",
"error_file" : "~/logs/eth-err.log",
"merge_logs" : false,
"watch" : false,
"exec_interpreter" : "bash",
"exec_mode" : "fork_mode"
},
{
"name" : "node-app",
"cwd" : "~/bin/www/",
"script" : "app.js",
"log_date_format" : "YYYY-MM-DD HH:mm Z",
"log_file" : "~/logs/node-app-log.log",
"out_file" : "~/logs/node-app-out.log",
"error_file" : "~/logs/node-app-err.log",
"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",
}
}
]