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://username:password@localhost:5432/music_admin?schema=public",
        JWT_SECRET: "your-jwt-secret-key-here",
      },
      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,
    },
  ],
};
