updateweb

This commit is contained in:
Local Server
2025-12-14 17:42:13 -06:00
parent 61929a5daf
commit 701f799cde
9 changed files with 436 additions and 1 deletions

30
ecosystem.config.js Normal file
View 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,
},
],
};