3 months 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
3 months ago
There's no stupid questions in this server, dont worry
why do you have a start.sh ?
bash start.sh
3 months 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
yh thats mainly why I did start.sh
3 months ago
Alright, I figured as much, no worries
3 months ago
based on the error, I'm guessing this is a python project? could you send me a screenshot of your root-level files?
3 months 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
like bot.py or any cogs files i think so
bit messy bc i got ai to help with the error before I came here but here os screenshot

3 months 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
3 months ago
alright, no worries, it looks like you're running a monorepo, is this a shared monorepo or isolated monorepo?
3 months ago
perfect, this will be much easier then
3 months 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
3 months ago
here's a guide with pictures if you get stuck:
3 months ago
no worries
was looking for smth like this but there were too much documentation couldnt find it
3 months ago
makes sense 🤣
3 months ago
good luck!! I need to step away for a bit (power went out), I'll check back once my power is back
3 months ago
for sure
3 months ago
here's an example fastapi app working on Railway:
3 months ago
did you get it working?
3 months ago
awesome!
Status changed to Solved dev • 3 months ago