commit
7913ff4bce
@ -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
|
||||
|
@ -16,6 +16,7 @@
|
||||
"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",
|
||||
|
Loading…
Reference in New Issue
Block a user