Skip to content

Commit

Permalink
Merge pull request #34 from favxlaw/feat/add-pm2-env-config
Browse files Browse the repository at this point in the history
feat: add-ecosystem-config
  • Loading branch information
vicradon authored Jul 19, 2024
2 parents b440af0 + 216252a commit ed178ac
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions ecosystem.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module.exports = {
apps: [
{
name: 'run_learnai_prod',
script: '/home/vicradon/deployments/production/learnai_prod',
env: {
SERVER_PORT: 9000,
DB_NAME: 'db_name',
APP_NAME: 'production',
APP_URL: 'http://localhost:9000'
}
},
{
name: 'run_learnai_staging',
script: '/home/vicradon/deployments/staging/learnai_staging',
env: {
SERVER_PORT: 8000,
DB_NAME: 'db_name',
APP_NAME: 'staging',
APP_URL: 'http://localhost:8000'
}
},
{
name: 'run_learnai_dev',
script: '/home/vicradon/deployments/development/learnai_dev',
env: {
SERVER_PORT: 7000,
DB_NAME: 'db_name',
APP_NAME: 'development',
APP_URL: 'http://localhost:7000'
}
}
]
};

0 comments on commit ed178ac

Please sign in to comment.