Created
April 17, 2023 12:36
-
-
Save teamgroove/5ab26057ec328cea37bc1dd4ce1263f7 to your computer and use it in GitHub Desktop.
eco
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: "backend", | |
script: "./app.js", | |
instances: 10, | |
exec_mode: "cluster", | |
interpreter: "/home/rsx/.nvm/versions/node/v16.14.0/bin/node", | |
}, | |
], | |
env_production: { | |
NODE_ENV: "production", | |
}, | |
env_development: { | |
NODE_ENV: "development", | |
}, | |
deploy: { | |
// "production" is the environment name | |
production: { | |
// SSH key path, default to $HOME/.ssh | |
// key: "/path/to/some.pem", | |
// SSH user | |
user: "devops", | |
// SSH host | |
host: ["vs01"], | |
// SSH options with no command-line flag, see 'man ssh' | |
// can be either a single string or an array of strings | |
ssh_options: "StrictHostKeyChecking=no", | |
// GIT remote/branch | |
ref: "origin/master", | |
// GIT remote | |
repo: "[email protected]:teamgroove/fibs.git", | |
// path in the server | |
path: "/home/devops/fibs", | |
// Pre-setup command or path to a script on your local machine | |
// "pre-setup": "apt-get install git ; ls -la", | |
// Post-setup commands or path to a script on the host machine | |
// eg: placing configurations in the shared dir etc | |
"post-setup": "env; ls -la", | |
// pre-deploy action | |
// "pre-deploy-local": "echo 'This is a local executed command'", | |
"pre-deploy": "", | |
// post-deploy action | |
"post-deploy": "nvm use 16; npm install", | |
}, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment