module.exports = {
  apps: [
    {
      name: "skyartshop",
      script: "server.js",
      cwd: "/media/pts/Website/SkyArtShop/backend",
      instances: 1,
      autorestart: true,
      watch: false,
      max_memory_restart: "500M",
      // Environment variables are loaded from .env file via dotenv
      // Do not hardcode sensitive information here
      env_file: "/media/pts/Website/SkyArtShop/.env",
      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,
    },
  ],
};
