Mailspring/pm2-debug-cloud-api.yml
Karim Hamidou 44d47ce278 Changes to get the cloud workers to run in our staging environment
Summary:
Summary of the changes:
- renamed some files to es6 to be able to use babel
- only try to create a db folder when we're using sqlite
- drop use of redis
- create a skeleton folder for workers.

Test Plan: Works on staging.

Reviewers: juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D3784
2017-01-25 16:26:40 -08:00

27 lines
961 B
YAML

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.es6
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