Requires node
and npm
installed. The minimum version of node
is 4.4.5
.
It's also recommended to use the latest node.
apt-get install nodejs
cp .env-sample .env
You can get those auth token from slack and jenkins
crontab -e
You might add something like this:
0 0 * * * cd path_to_this_dir && node cron-jobs/fetch_user.js
0 1 * * * cd path_to_this_dir && node cron-jobs/del_pods.js
./init.sh
This will create database, fetch cache, etc for you.
It's recommended to use forever
to start your app
npm install -g forever
Then you can do:
forever start index.js