[ ] For rules-server, ensure that required properties that are given as CLI args are setup in a cong file and used while initializing pm2 env.
[ ] Configure avni-media-user to be able to have commands executed without this hack in .bashrc files of avni-media-user and ubuntu.
Setup separate config file to be used by PM2 for running avni-media client, server and rules-server apps
[ ] Configure properties in /etc/media.conf and use that in PM2 using ansible playbook role
[ ] Use Media-service config.yml to setup PM2 which uses /etc/media.conf to load env variables
[ ] Setup and deploy media server and client apps to be run using previously setup PM2
Approach
It can be achieving by creating ecosystem.config.js as Jinja 2 template file and adding necessary envs and startup script(app.js) in it, and using the ecosystem.config.js to start the node process
@himeshr we don't use the enhancement label since everything that is not a bug or bugsnag is an enhancement.
Also, do mark to appropriate epic when done.
Apps that need pm2 config file
Tech tasks
[ ] For rules-server, ensure that required properties that are given as CLI args are setup in a cong file and used while initializing pm2 env.
[ ] Configure avni-media-user to be able to have commands executed without this hack in .bashrc files of avni-media-user and ubuntu.
Setup separate config file to be used by PM2 for running avni-media client, server and rules-server apps
Approach
It can be achieving by creating ecosystem.config.js as Jinja 2 template file and adding necessary envs and startup script(app.js) in it, and using the ecosystem.config.js to start the node process