a year ago
I am currently working on a SvelteKit project that builds successfully and runs without errors during the build process. However, when I attempt to access the application via the URL, I encounter the following issue: "Application failed to respond."
I would greatly appreciate any insights or guidance you could provide to help me resolve this issue.
Thank you in advance for your assistance!
HTTP Logs
> zene-music@0.0.1 preview
> vite preview
➜ Local: http://localhost:3419/
➜ Network: use --host to expose'
7 Replies
a year ago
You are running a development server, that's not going to work nor would you want it to work.
In your package.json you need to have a build script to build the site, and you need to have a start script to run the resulting entrypoint.
Status changed to Awaiting User Response Railway • over 1 year ago
a year ago
Yes i have added a build script in my package.json and as you can see i attached file i have shared screenshot of my package.json where it's mentioned build and preview command. SO that's why i have mentioned npm run build in Custom Build Command and npm run preview in Custom Start Command. But even then the server is not starting.
Attachments
Status changed to Awaiting Railway Response Railway • over 1 year ago
Status changed to Awaiting User Response Railway • over 1 year ago
a year ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • over 1 year ago
a year ago
Hey can you please help me with this thing cause i am totally new in railway.app. currently i have my own VPS where i use npm run build and npm run preview to run my sveltekit project and it works without any issue. How can i resolve the issue which i am facing on railway and run my project.
a year ago
as i mentioned before i have added build and start both script but still it's not working..
a year ago
Please see my first message, you do not want to be running a development server, you start command needs to start the production server.
At this point I'm just repeating myself so I'm gonna close this out.
Status changed to Closed brody • over 1 year ago
