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,
    },
  ],
};
