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
create new project
select from github repo
(i selected my react frontend)
ⓘ Deployment information is only viewable by project members and Railway employees.
2 Replies
hiroc
TRIALOP
a year ago
I had a typo in my start command. Im retrying
a year ago
Looks like you are now using serve, that is an acceptable server for most trial projects.