You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before I was using version 1.0.26, the server would close itself when I closed the command prompt or stopped it, but after updating the version, the server is still running.
I'm using watch mode, and this happens after the first save.
The example file:
server.ts
import{Hono}from'hono'constapp=newHono()app.get('/',()=>{returnResponse.json({message: 'Hello, World!'})})constserver=Bun.serve({fetch: app.fetch,port: process.env.PORT||5000})console.log(`Server is running in ${server.url.href} address.`)
and the command:
bun --watch server.ts
and the error message after the first save:
5 |app.get('/', () => {
6 |
7 |return Response.json({ message: 'Hello, World!' })
8 | })
9 |
10 | const server = Bun.serve({
^
EADDRINUSE: Failed to start server. Is port 5000 in use?
syscall: "listen"
and after the error message I have to find for process PID and kill it.
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.0.26
What platform is your computer?
Linux - Ubuntu
What steps can reproduce the bug?
First of all, I apologize for my bad English.
Before I was using version 1.0.26, the server would close itself when I closed the command prompt or stopped it, but after updating the version, the server is still running.
I'm using watch mode, and this happens after the first save.
The example file:
server.ts
and the command:
and the error message after the first save:
and after the error message I have to find for process PID and kill it.
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: