updateweb
This commit is contained in:
30
ecosystem.config.js
Normal file
30
ecosystem.config.js
Normal file
@@ -0,0 +1,30 @@
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: "skyartshop",
|
||||
script: "server.js",
|
||||
cwd: "/media/pts/Website/SkyArtShop/backend",
|
||||
instances: 1,
|
||||
autorestart: true,
|
||||
watch: false,
|
||||
max_memory_restart: "500M",
|
||||
env: {
|
||||
NODE_ENV: "development",
|
||||
PORT: 5000,
|
||||
DB_HOST: "localhost",
|
||||
DB_PORT: 5432,
|
||||
DB_NAME: "skyartshop",
|
||||
DB_USER: "skyartapp",
|
||||
DB_PASSWORD: "SkyArt2025Pass",
|
||||
SESSION_SECRET: "skyart-shop-secret-2025-change-this-in-production",
|
||||
UPLOAD_DIR: "/var/www/SkyArtShop/wwwroot/uploads/images",
|
||||
},
|
||||
error_file: "/var/log/skyartshop/pm2-error.log",
|
||||
out_file: "/var/log/skyartshop/pm2-output.log",
|
||||
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
|
||||
merge_logs: true,
|
||||
kill_timeout: 5000,
|
||||
listen_timeout: 10000,
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user