T
TanStack3d ago
wise-white

Tanstack start deployment using bun.

Hi, I was following the documentation guide for deploying using bun: "https://tanstack.com/start/latest/docs/framework/react/guide/hosting#production-server-with-bun". Now when i run the bun run server.ts locally. It works fine. But when i deploy it on a server. I don't get anything. Here are my curl responses. I created a health route which works fine but the main app is not working. curl response of index:
ubuntu@server:~$ curl -v localhost:8100
* Host localhost:8100 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:8100...
* connect to ::1 port 8100 from ::1 port 58550 failed: Connection refused
* Trying 127.0.0.1:8100...
* Connected to localhost (127.0.0.1) port 8100
> GET / HTTP/1.1
> Host: localhost:8100
> User-Agent: curl/8.5.0
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Date: Mon, 24 Nov 2025 16:59:40 GMT
< Content-Length: 0
<
* Connection #0 to host localhost left intact
ubuntu@server:~$ curl -v localhost:8100
* Host localhost:8100 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:8100...
* connect to ::1 port 8100 from ::1 port 58550 failed: Connection refused
* Trying 127.0.0.1:8100...
* Connected to localhost (127.0.0.1) port 8100
> GET / HTTP/1.1
> Host: localhost:8100
> User-Agent: curl/8.5.0
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Date: Mon, 24 Nov 2025 16:59:40 GMT
< Content-Length: 0
<
* Connection #0 to host localhost left intact
curl response on health route:
ubuntu@server:~$ curl -v localhost:8100/__health
* Host localhost:8100 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:8100...
* connect to ::1 port 8100 from ::1 port 36136 failed: Connection refused
* Trying 127.0.0.1:8100...
* Connected to localhost (127.0.0.1) port 8100
> GET /__health HTTP/1.1
> Host: localhost:8100
> User-Agent: curl/8.5.0
> Accept: */*
>
< HTTP/1.1 200 OK
< content-type: text/plain;charset=utf-8
< Date: Mon, 24 Nov 2025 17:02:23 GMT
< Content-Length: 19
<
OK FROM BUN SERVER
* Connection #0 to host localhost left intact
ubuntu@server:~$ curl -v localhost:8100/__health
* Host localhost:8100 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:8100...
* connect to ::1 port 8100 from ::1 port 36136 failed: Connection refused
* Trying 127.0.0.1:8100...
* Connected to localhost (127.0.0.1) port 8100
> GET /__health HTTP/1.1
> Host: localhost:8100
> User-Agent: curl/8.5.0
> Accept: */*
>
< HTTP/1.1 200 OK
< content-type: text/plain;charset=utf-8
< Date: Mon, 24 Nov 2025 17:02:23 GMT
< Content-Length: 19
<
OK FROM BUN SERVER
* Connection #0 to host localhost left intact
Hosting | TanStack Start React Docs
Hosting is the process of deploying your application to the internet so that users can access it. This is a critical part of any web development project, ensuring your application is available to the...
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?