.replit file not updating

Hello,
Problem description
I’ve updated my .replit file so that it first runs run build astro and then bun run run-server.mjs, but the .replit file didn’t update. When I try to run the commands above using the run button, the Repl still runs another command, but when I run these commands manually via the shell it works perfectly. (view image).
**Actual behavior : **
The .replit file isn’t updating, and the Repl still runs old commands.
Expected behavior:
The Repl updates the .replit file and runs the new commands.
Repl link/Link to where the bug appears:
https://replit.com/@cldprv/Ositaut
Screenshots, links, or other helpful context:


I’m on a bun repl with astro.
I’m on an Ubuntu computer on Chromium.

You’re editing the deployment build/run commands, not the editor build/run commands. To edit your editor commands, add this to .replit:

compile = "bun run build"
run = "bun run run-server.mjs"

I added this code but the repl still runs the old commands.
Code :

entrypoint = "index.ts"
modules = ["bun-1.0:v1-20230911-f253fb1"]

hidden = [".config", "bun.lockb"]

[nix]
channel = "stable-22_11"

compile = "bun run build"
run = "bun run run-server.mjs"

[deployment]

build = ["bun run build"]
run = ["bun run run-server.mjs"]
deploymentTarget = "cloudrun"

I resolved it, I just had to set my compile and run command above [nix] like this :

entrypoint = "index.ts"
modules = ["bun-1.0:v1-20230911-f253fb1"]

hidden = [".config", "bun.lockb"]
compile = "bun run build"
run = "bun run run-server.mjs"
[nix]
channel = "stable-22_11"


[deployment]

build = ["bun run build"]
run = ["bun run run-server.mjs"]
deploymentTarget = "cloudrun"

Thank you for your help!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.