a year ago
Error: No start command could be found
9 Replies
a year ago
I am creating an app with a backend and front end. should I set the start at the .json of the front, back or app (that has both of them?)
a year ago
sorry, I'm not sure what you mean. I have without a start->
app/package.json
at my app/backend/package.json
"scripts": {
"start": "node ./build/server.js",
and at my app/frontend/package.json
"scripts": {
"dev": "vite --open",a year ago
https://github.com/IsabelMoraes/isabel-moraes-futebolClube
a year ago
they dont
a year ago
You need two Railway services, one for the frontend and one for the backend.
Then in each service settings, set the applicable root directory.
And for the frontend, use the Dockerfile and Caddyfile shown here -
https://docs.railway.app/guides/react#use-a-dockerfile
But in the Caddyfile, replace dist with build
