I have gone for $5 and i cannot build sveltekit project
sayyedrizwan
HOBBYOP

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

'Sep 28 13:41:26

> zene-music@0.0.1 preview

Sep 28 13:41:26

> vite preview

Sep 28 13:41:26

Sep 28 13:41:27

Local: http://localhost:3419/

Sep 28 13:41:27

Network: use --host to expose'

Closed

7 Replies

brody
EMPLOYEE

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


sayyedrizwan
HOBBYOP

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


brody
EMPLOYEE

a year ago

Please read the rest of the first message.


Status changed to Awaiting User Response Railway over 1 year ago


brody
EMPLOYEE

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


sayyedrizwan
HOBBYOP

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.


brody
EMPLOYEE

a year ago

I had previously answered all that in the first message.


sayyedrizwan
HOBBYOP

a year ago

as i mentioned before i have added build and start both script but still it's not working..


brody
EMPLOYEE

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


Loading...