mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-26 17:15:30 +08:00
Add ability to debug with chrome dev tools in cloud-api
This commit is contained in:
parent
202d56d3f2
commit
a738d8a622
2 changed files with 27 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"start": "pm2 stop all; pm2 delete all; pm2 start ./pm2-dev.yml --no-daemon",
|
||||
"debug-cloud-api": "pm2 stop all; pm2 delete all; pm2 start ./pm2-debug-cloud-api.yml --no-daemon",
|
||||
"stop": "pm2 stop all; pm2 delete all",
|
||||
"build-n1-cloud": "node scripts/build-n1-cloud.js",
|
||||
"restart": "pm2 restart all",
|
||||
|
|
26
pm2-debug-cloud-api.yml
Normal file
26
pm2-debug-cloud-api.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
apps:
|
||||
- script : packages/cloud-api/app.es6
|
||||
interpreter : node_modules/.bin/babel-node
|
||||
interpreter_args: "--inspect"
|
||||
watch : ["packages"]
|
||||
name : api
|
||||
env :
|
||||
PORT: 5100
|
||||
DB_ENCRYPTION_ALGORITHM : "aes-256-ctr"
|
||||
DB_ENCRYPTION_PASSWORD : "d6F3Efeq"
|
||||
GMAIL_CLIENT_ID : "271342407743-nibas08fua1itr1utq9qjladbkv3esdm.apps.googleusercontent.com"
|
||||
GMAIL_CLIENT_SECRET : "WhmxErj-ei6vJXLocNhBbfBF"
|
||||
GMAIL_REDIRECT_URL : "http://localhost:5100/auth/gmail/oauthcallback"
|
||||
NODE_ENV: 'development'
|
||||
HONEY_DATASET: 'n1-cloud-staging'
|
||||
HONEY_WRITE_KEY: 'XXXXXXXXXXXXX'
|
||||
- script : packages/cloud-workers/app.js
|
||||
interpreter : node_modules/.bin/babel-node
|
||||
watch : ["packages"]
|
||||
name : workers
|
||||
env :
|
||||
DB_ENCRYPTION_ALGORITHM : "aes-256-ctr"
|
||||
DB_ENCRYPTION_PASSWORD : "d6F3Efeq"
|
||||
NODE_ENV: 'development'
|
||||
- script : redis-server
|
||||
name : redis
|
Loading…
Reference in a new issue