R
Railway5mo ago
Tibo

Error when running start command for SvelteKit app

I want to deploy my Sveltekit app on Railway but I'm getting errors during the deployment. Here's my deployment log:
npx http-server ./dist
npm WARN config production Use `--omit=dev` instead.
npm WARN exec The following package was not found and will be installed: http-server@14.1.1
Starting up http-server, serving ./dist
http-server version: 14.1.1
http-server settings:
CORS: disabled
Cache: 3600 seconds
Connection Timeout: 120 seconds
Directory Listings: visible
AutoIndex: visible
Serve GZIP Files: false
Serve Brotli Files: false
Default File Extension: none
Available on:
http://127.0.0.1:5882
http://172.17.2.98:5882
Hit CTRL-C to stop the server
[2024-03-08T13:27:04.136Z] "GET /" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
(node:145) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)
"GET /" Error (404): "Not found"
"GET /favicon.ico" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
npx http-server ./dist
npm WARN config production Use `--omit=dev` instead.
npm WARN exec The following package was not found and will be installed: http-server@14.1.1
Starting up http-server, serving ./dist
http-server version: 14.1.1
http-server settings:
CORS: disabled
Cache: 3600 seconds
Connection Timeout: 120 seconds
Directory Listings: visible
AutoIndex: visible
Serve GZIP Files: false
Serve Brotli Files: false
Default File Extension: none
Available on:
http://127.0.0.1:5882
http://172.17.2.98:5882
Hit CTRL-C to stop the server
[2024-03-08T13:27:04.136Z] "GET /" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
(node:145) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)
"GET /" Error (404): "Not found"
"GET /favicon.ico" "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
The problem seems to come from my start command. As I'm using Vite, there are no built-in start command so I used this one: npx http-server ./dist I don't know what I should use as a start command or what I should modify
3 Replies
Percy
Percy5mo ago
Project ID: 6d3c1e03-b0a9-4a06-aeac-c9d72f8babd1
Tibo
Tibo5mo ago
6d3c1e03-b0a9-4a06-aeac-c9d72f8babd1
Brody
Brody5mo ago
is your app client side rendered or server side rendered