Skip to content

Commit

Permalink
add file longKeys.js and import into pm2 config template. In the rele…
Browse files Browse the repository at this point in the history
…ase of 14.1, we reintroduced the Google Script Import, requiring a long JSON object in the env containing Google API stuff (secrets, accounts, etc). This object is long, and disrupts the pm2 config file. Now, we can import the object from longKeys.js (which can hold other values as well if need be) and keep the config file neat.
  • Loading branch information
engelhartrueben committed Oct 18, 2024
1 parent 7ce0e22 commit 1d61e91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deploy/spoke-pm2.config.js.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const longKeys = require('./longKeys');

const env_production = {
NODE_ENV:'production',
SUPPRESS_SELF_INVITE:'',
Expand Down
5 changes: 5 additions & 0 deletions longKeys.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const keys = {

}

module.exports = keys;

0 comments on commit 1d61e91

Please sign in to comment.