upgraded to new railway, having "program not found"
i just upgraded to railway 3 and now having troubles getting "railway run" working.
if i run "yarn dev" it works, but if i run "railway run yarn dev" it says "program not found". i confirmed that the environment and services (and variables) are all right, not sure what else I should be doing, thanks
16 Replies
Project ID:
N/A
You might find these helpful:
- Testing with get started guide but failed
- Npm program not found
- Use Railway variables
⚠️ experimental feature
ok works if i use "railway shell" then run "yarn dev", can i not use "railway run yarn dev" anymore?
you should be able to. this might be due to some of the recent changes in the cjangelog about databases. Can you click variables and send a screenshot?
this?
project
448a8382-6e3f-42d6-a3cd-a9a8c5493c1d
service
d56b464c-e00a-4c21-9034-4aebd0a5c1b5
Oh weird. Are you connected to the correct service and project?
yes its correct
(i checked by typing
railway variables
and showed me the correct variables for the service/env)Eddie, do you still get the database error when running yarn dev in the railway shell?
from what I can gather from your first screenshot is you got that error from running yarn dev without railway run or railway shell?
I think railway run breaks with got bash
can u try in power shell
i do NOT get the error
it breaks when i do this:
railway run yarn dev
it works fine if i do this:
railway shell
yarn dev
the screenshot is without doing the railway shell
commandokay so if you run your app under railway shell, everything works?
eddie
(sorry had to put my daughter to sleep, trying now)
Google power shell script execution policy and follow steps to disable it