From 44d47ce278fb951ac3fd77a287893a1866cf3d30 Mon Sep 17 00:00:00 2001 From: Karim Hamidou Date: Wed, 25 Jan 2017 16:26:40 -0800 Subject: [PATCH] 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 --- pm2-debug-cloud-api.yml | 2 +- pm2-dev.yml | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pm2-debug-cloud-api.yml b/pm2-debug-cloud-api.yml index a07b2328f..a1e201340 100644 --- a/pm2-debug-cloud-api.yml +++ b/pm2-debug-cloud-api.yml @@ -14,7 +14,7 @@ apps: NODE_ENV: 'development' HONEY_DATASET: 'n1-cloud-staging' HONEY_WRITE_KEY: 'XXXXXXXXXXXXX' - - script : packages/cloud-workers/app.js + - script : packages/cloud-workers/app.es6 interpreter : node_modules/.bin/babel-node watch : ["packages"] name : workers diff --git a/pm2-dev.yml b/pm2-dev.yml index ff6c36fdc..43e5bf0fe 100644 --- a/pm2-dev.yml +++ b/pm2-dev.yml @@ -14,7 +14,7 @@ apps: NODE_ENV: 'development' HONEY_DATASET: 'n1-cloud-staging' HONEY_WRITE_KEY: 'XXXXXXXXXXXXX' - - script : packages/cloud-workers/app.js + - script : packages/cloud-workers/app.es6 interpreter : node_modules/.bin/babel-node watch : ["packages"] name : workers @@ -22,5 +22,3 @@ apps: DB_ENCRYPTION_ALGORITHM : "aes-256-ctr" DB_ENCRYPTION_PASSWORD : "d6F3Efeq" NODE_ENV: 'development' - - script : redis-server - name : redis