Skip to content

Commit 26216ec

Browse files
committed
add watch and update rebuild
1 parent b5dffb2 commit 26216ec

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

ecosystem.config.js.example

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ module.exports = {
33
{
44
name: 'TipBot',
55
script: './bot/bot.js',
6-
cwd: 'C:/Users/RavenDev/Desktop/Bots/Veronica',
6+
cwd: 'Location-of-Bot-Dir',
77
instance_id_env: '0',
8-
log_date_format: 'MMMM Do YYYY, h:mm:ss a',
8+
watch: true,
99
error_file:
10-
'C:/Users/RavenDev/Desktop/Bots/Veronica/Logs/veronica-err.log',
11-
out_file: 'C:/Users/RavenDev/Desktop/Bots/Veronica/Logs/veronica-out.log',
10+
'Location-of-Bot-Dir/Logs/tipbot-err.log',
11+
out_file: 'Location-of-Bot-Dir/Logs/tipbot-out.log',
1212
env: {
1313
NODE_ENV: 'development'
1414
},

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
"request": "^2.83.0"
1919
},
2020
"scripts": {
21-
"prebuild": "call ./windows-install.bat",
22-
"rebuild": "git pull origin master && npm install && pm2 delete veronica"
21+
"precommit": "prettier --single-quote true --write bot/**/*.js",
22+
"rebuild": "git pull origin master && npm install && update all",
23+
"start": "pm2 start ecosystem.json.js"
2324
},
2425
"devDependencies": {
2526
"prettier": "1.7.4"

0 commit comments

Comments
 (0)