cron api user

beta.r3js.org
Theunis J. Botha 2017-04-03 14:49:10 +02:00
parent 7cb8c2a818
commit 8eac30aa7e
3 changed files with 147 additions and 2 deletions

View File

@ -23817,3 +23817,146 @@ gulp
sudo service nginx restart
tail -f /var/log/nginx/*.log
exit
r
c
cd controller/
git diff
git commit -am "cron cleanup"
git push
git checkout develop
git merge feature/cron
git push
git pull
git push
cd ..
cd model/
git diff
git commit -am "cron model"
git push
git checkout develop
git merge feature/cron
git push
cd ..
cd api
git push
git checkout develop
git merge feature/cron
git push
git pull
git push
git mergetool
git commit -am "merge conflicts"
git status
git push
find . -name "*.orig" | xargs rm
ls
cd ..
ls
cd app/
git diff
git pull
git reset --hard HEAD
git pull
git status
cd ..
ls
cd config/
git diff
git commit -am "cron config"
git push
cd ..
ls
cd controller/
cd ..
ls
cd cron/
git diff
git push
exit
m
exit
s
exit
r
mongo
r
d
s
r
cd app
gulp build
git pull
gulp build
git pull
r
cd ..
cd api
git branch feature/cron
git checkout feature/cron
git commit -am "move cron to API"
r
npm install --save cron
r
d
s
sudo service nginx restart
cd app
git pull
git diff
git status
git reset views/index.ejs
git status
cd ..
cd cron/
git diff
git commit -am "start cron jobs"
git push
git diff
git commit -am "reload and start jobs if needed"
git diff
git commit -am "stop jobs if needed, basic error handling"
git push
cd ..
cd config/
git diff
git commit -am "cron config"
git push
d
s
cd cron
ls
npm install --save cron
ls
ls -l
npm install --save cron
cd ..
cd cron
npm install --save cron
npm install cron
npm install --save cron
git commit -am "gw_cron package.json"
git push
r
cd ..
cd api
git diff
git commit -am "cron api"
git push
git push -u origin feature/cron
cd ..
ls
r
d
s
r
st
ls
./start_cron
st
r
cd cron
git diff
git commit -am "loading jobs - catching bad cron configs"
git push
m
exit

View File

@ -128,7 +128,9 @@ var secure = {
},
cron: {
port: 3116,
debugPort: 3216
debugPort: 3216,
apiUser : 'tj@gamewheel.com',
apiPassword : 'test12345'
}
};

View File

@ -1,3 +1,3 @@
#!/bin/bash
cd /usr/share/gamewheel/cron
pm2 start bin/start --node-args="--debug=3216" --name cron
pm2 start bin/start --node-args="--debug-brk=3216" --name cron