Last active
April 7, 2019 15:52
-
-
Save DenisCarriere/889585db9932e308ce4c583a5342b534 to your computer and use it in GitHub Desktop.
DPS pm2 config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
apps : [ | |
{ | |
name: 'dapp-services-node', | |
script: 'services/dapp-services-node/index.js', | |
autorestart: true, | |
log_date_format : "YYYY-MM-DD HH:mm", | |
env: { | |
NODEOS_CHAINID: 'aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906', | |
NODEOS_HOST: '<NODEOS ENDPOINT>', | |
NODEOS_SECURED: false, | |
NODEOS_PORT: 80, | |
PORT: 3115, | |
DSP_ACCOUNT: '<DSP ACCOUNT>', | |
DSP_PRIVATE_KEY: '<PRIVATE KEY>', | |
} | |
}, | |
{ | |
name: 'demux', | |
script: 'services/demux/index.js', | |
autorestart: true, | |
log_date_format : "YYYY-MM-DD HH:mm", | |
env: { | |
NODEOS_CHAINID: 'aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906', | |
NODEOS_HOST: '<ZMQ ENDPOINT>', | |
NODEOS_SECURED: false, | |
NODEOS_PORT: 80, | |
NODEOS_ZMQ_PORT: 5557, | |
SOCKET_MODE: 'sub', | |
DEMUX_BACKEND: 'zmq_plugin', | |
} | |
}, | |
{ | |
name: 'ipfs-dapp-service-node', | |
script: 'services/ipfs-dapp-service-node/index.js', | |
autorestart: true, | |
log_date_format : "YYYY-MM-DD HH:mm", | |
env: { | |
NODEOS_CHAINID: 'aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906', | |
NODEOS_HOST: '<NODEOS ENDPOINT>', | |
NODEOS_SECURED: false, | |
NODEOS_PORT: 80, | |
IPFS_HOST: '<IPFS ENDPOINT>', | |
DSP_ACCOUNT: '<DSP ACCOUNT>', | |
DSP_PRIVATE_KEY: '<PRIVATE KEY>', | |
} | |
}, | |
{ | |
name: 'log-dapp-service-node', | |
script: 'services/log-dapp-service-node/index.js', | |
autorestart: true, | |
log_date_format : "YYYY-MM-DD HH:mm", | |
env: { | |
NODEOS_CHAINID: 'aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906', | |
NODEOS_HOST: '<NODEOS ENDPOINT>', | |
NODEOS_SECURED: false, | |
NODEOS_PORT: 80, | |
DSP_ACCOUNT: '<DSP ACCOUNT>', | |
DSP_PRIVATE_KEY: '<PRIVATE KEY>', | |
} | |
} | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment