just bun dev

This commit is contained in:
Oliver Bryan
2025-12-31 04:55:26 +00:00
parent 9469761889
commit 414152639a

View File

@@ -1,15 +1,12 @@
const path = require("node:path"); const path = require("node:path");
const backendPort = Number(process.env.BACKEND_PORT || 3000);
const frontendPort = Number(process.env.FRONTEND_PORT || 1420);
module.exports = { module.exports = {
apps: [ apps: [
{ {
name: "issue-backend", name: "issue-backend",
cwd: path.join(__dirname, "packages", "backend"), cwd: path.join(__dirname, "packages", "backend"),
script: "bun", script: "bun",
args: `src/index.ts --PORT=${backendPort}`, args: "dev",
interpreter: "none", interpreter: "none",
exec_mode: "fork", exec_mode: "fork",
instances: 1, instances: 1,
@@ -24,7 +21,7 @@ module.exports = {
name: "issue-frontend", name: "issue-frontend",
cwd: path.join(__dirname, "packages", "frontend"), cwd: path.join(__dirname, "packages", "frontend"),
script: "bun", script: "bun",
args: `run preview -- --host 0.0.0.0 --port ${frontendPort}`, args: "dev",
interpreter: "none", interpreter: "none",
exec_mode: "fork", exec_mode: "fork",
instances: 1, instances: 1,