Agent and Assistant seem to want to do things their own way. Agent keeps reverting port config to something that shows a completely different landing page than Assistant does when it restarts. I don’t understand it at all, despite hours and hours of debugging, it keeps reverting back.
Can anyone take a look at this .replit and tell me what the heck is going on?!
FWIW, “Dev” workflow is the RIGHT one, that does the right things.
modules = [“nodejs-20”, “web”, “postgresql-16”]
run = “npm run dev”
hidden = [“.config”, “.git”, “generated-icon.png”, “node_modules”, “dist”]
[nix]
channel = “stable-24_05”
[deployment]
deploymentTarget = “gce”
build = [“npm”, “run”, “build”]
run = [“sh”, “-c”, “npm run start”]
[[ports]]
localPort = 3000
externalPort = 3000
[[ports]]
localPort = 3001
externalPort = 3001
[[ports]]
localPort = 8080
externalPort = 80
[workflows]
runButton = “Dev”
[[workflows.workflow]]
name = “Project”
mode = “parallel”
author = “agent”
[[workflows.workflow.tasks]]
task = “workflow.run”
args = “Start application”
[[workflows.workflow.tasks]]
task = “workflow.run”
args = “Client”
[[workflows.workflow.tasks]]
task = “workflow.run”
args = “Server”
[[workflows.workflow]]
name = “Dev Server”
author = 36296011
[[workflows.workflow.tasks]]
task = “shell.exec”
args = “npm run dev”
[[workflows.workflow]]
name = “Dev”
author = 36296011
[[workflows.workflow.tasks]]
task = “shell.exec”
args = “PORT=3000 NODE_ENV=development tsx watch --clear-screen=false server/index.ts”
[[workflows.workflow]]
name = “Start application”
author = “agent”
[workflows.workflow.metadata]
agentRequireRestartOnSave = false
[[workflows.workflow.tasks]]
task = “shell.exec”
args = “PORT=3001 NODE_ENV=development tsx watch --clear-screen=false server/index.ts”
[[workflows.workflow]]
name = “Client”
author = “agent”
[workflows.workflow.metadata]
agentRequireRestartOnSave = false
[[workflows.workflow.tasks]]
task = “packager.installForAll”
[[workflows.workflow.tasks]]
task = “shell.exec”
args = “cd client && npm run dev”
waitForPort = 3000
[[workflows.workflow]]
name = “Server”
author = “agent”
[workflows.workflow.metadata]
agentRequireRestartOnSave = false
[[workflows.workflow.tasks]]
task = “packager.installForAll”
[[workflows.workflow.tasks]]
task = “shell.exec”
args = “PORT=3001 npm run dev”
waitForPort = 3001