mirror of
https://github.com/hex248/sprint.git
synced 2026-02-07 18:23:03 +00:00
just bun dev
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user