a year ago
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
start.sh: line 4: pip: command not found
start.sh: line 9: python: command not found
What am I doing wrong? I am beginner dev so sorry if this question is stupid.
38 Replies
a year ago
There's no stupid questions in this server, dont worry
why do you have a start.sh ?
a year ago
the reason I ask is because Railpack, when it doesn't figure out what kind of project you're running, will default to a state where it assumes its some sort of custom project where it'll then look for a start.sh (iirc) and if not found it'll tell you something like:
"Railpack couldn't figure out a build plan for this project. start.sh not found"
-# this is paraphrasing
if you decided to add a start.sh because of that then there's a more root level issue we need to tackle
a year ago
Alright, I figured as much, no worries
a year ago
based on the error, I'm guessing this is a python project? could you send me a screenshot of your root-level files?
a year ago
just the top-most ones
- on a github repo, just take click on the repo and send a screenshot of what you see
- if youre not using github for this and using railway up instead, then just open the folder in which youre running railway-up and send a screenshot of the contents of that folder
bit messy bc i got ai to help with the error before I came here but here os screenshot
a year ago
yea the AI seems to have made a mess of things, railway.json and railway.toml is redundant and nixpacks.toml isn't up-to-date anymore because nixpacks is deprecated
a year ago
alright, no worries, it looks like you're running a monorepo, is this a shared monorepo or isolated monorepo?
a year ago
perfect, this will be much easier then
a year ago
you'll want to create 2 services, one for each service in your monorepo (in this case frontend and backend)
provide the repo as the source for each but set the root directory on one to backend and the other to frontend
a year ago
here's a guide with pictures if you get stuck:
a year ago
no worries
was looking for smth like this but there were too much documentation couldnt find it
a year ago
makes sense 🤣
a year ago
good luck!! I need to step away for a bit (power went out), I'll check back once my power is back
a year ago
for sure
a year ago
here's an example fastapi app working on Railway:
a year ago
did you get it working?
a year ago
awesome!
Status changed to Solved dev • 11 months ago