This commit is contained in:
24
ecosystem.config.js
Normal file
24
ecosystem.config.js
Normal file
@@ -0,0 +1,24 @@
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: "music-admin",
|
||||
script: ".output/server/index.mjs",
|
||||
cwd: "/var/www/music/music-admin",
|
||||
instances: 1,
|
||||
autorestart: true,
|
||||
watch: false,
|
||||
max_memory_restart: "1G",
|
||||
env: {
|
||||
NODE_ENV: "production",
|
||||
PORT: 3000,
|
||||
DATABASE_URL:
|
||||
"postgresql://musicuser:Tjqjqhdks$321@localhost:5432/musicdb",
|
||||
JWT_SECRET: "vTEq9OTvIFs3ZbDaszLRL/ZiAEXziemX1Wh1GIeb+DI=",
|
||||
},
|
||||
error_file: "/var/log/music-admin-error.log",
|
||||
out_file: "/var/log/music-admin-out.log",
|
||||
log_file: "/var/log/music-admin.log",
|
||||
time: true,
|
||||
},
|
||||
],
|
||||
};
|
||||
@@ -2,7 +2,7 @@ module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: "music-admin-webhook",
|
||||
script: "webhook-server.js",
|
||||
script: "webhook-server.cjs",
|
||||
cwd: "/var/www/music/music-admin",
|
||||
instances: 1,
|
||||
autorestart: true,
|
||||
|
||||
20
webhook-ecosystem.config.js
Normal file
20
webhook-ecosystem.config.js
Normal file
@@ -0,0 +1,20 @@
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: "music-admin-webhook",
|
||||
script: "webhook-server.js",
|
||||
cwd: "/var/www/music/music-admin",
|
||||
instances: 1,
|
||||
autorestart: true,
|
||||
watch: false,
|
||||
max_memory_restart: "100M",
|
||||
env: {
|
||||
NODE_ENV: "production",
|
||||
},
|
||||
error_file: "/var/log/music-admin-webhook-error.log",
|
||||
out_file: "/var/log/music-admin-webhook-out.log",
|
||||
log_file: "/var/log/music-admin-webhook.log",
|
||||
time: true,
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user