a year ago
Hey everyone, Iβm trying to deploy a Python Flask backend on Railway using a monorepo structured like this:
BetterPDP/
βββ backend/
βββ requirements.txt
βββ src/
βββ βββ main.py # Contains app = Flask(__name__) β
βββ ...
βββ frontend/
β βββ ...
Iβve already:
- Set the root directory to
backendunder Settings > Source > Add Root Directory - Confirmed that
requirements.txtis correctly placed and includes Flask and Gunicorn - Confirmed
main.pyis insrc/and definesapp = Flask(__name__)
I'm still getting as an answer:
Nixpacks was unable to generate a build plan for this app. The contents of the app directory are: .DS_Store frontend/ backend/
It seems like Nixpacks is not detecting the root properly or failing to resolve the Python app structure.
Thanks in advance!
5 Replies
a year ago
Can you screenshot your root directory setting? It doesn't look like it's taking effect.
samgordon
Can you screenshot your root directory setting? It doesn't look like it's taking effect.
a year ago
Here it is
Attachments
a year ago
Can you try changing to Railpack? Located at the bottom of that settings page.
samgordon
Can you try changing to Railpack? Located at the bottom of that settings page.
a year ago
Fails exactly as with Nixpacks
