mirror of
https://github.com/marcogll/ap_pos.git
synced 2026-01-13 13:15:16 +00:00
feat: add ecosystem configuration for process management
This commit is contained in:
24
ap-pos/ecosystem.config.js
Normal file
24
ap-pos/ecosystem.config.js
Normal file
@@ -0,0 +1,24 @@
|
||||
cat > /home/marco/Documents/code/ap_pos/ap-pos/ecosystem.config.js <<'EOF'
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: "ap-pos",
|
||||
script: "server.js",
|
||||
cwd: "/home/marco/Documents/code/ap_pos/ap-pos",
|
||||
watch: true,
|
||||
watch_delay: 2000,
|
||||
ignore_watch: [
|
||||
"node_modules",
|
||||
"logs",
|
||||
"*.log",
|
||||
"*.sqlite",
|
||||
"*.db",
|
||||
".git"
|
||||
],
|
||||
env: {
|
||||
NODE_ENV: "production"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
EOF
|
||||
Reference in New Issue
Block a user