Trouble deploying react project (build with vite) that has websockets. Server not found error
hiroc
TRIALOP

a year ago

My deployment keep crashing. i see this error "sh: 1: server: not found", does railway know im tryin to deploy a react frontend?

my react project was made with vite and didnt come with a "start" command so i added my own. but i now have this issue that "sh:1 server:not found"

These were my steps to deploying the project

  1. create new project

  2. select from github repo

  3. (i selected my react frontend)

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

2 Replies

hiroc
TRIALOP

a year ago

I had a typo in my start command. Im retrying


brody
EMPLOYEE

a year ago

Looks like you are now using serve, that is an acceptable server for most trial projects.


Loading...