5 months 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 DirectoryConfirmed that
requirements.txtis correctly placed and includes Flask and GunicornConfirmed
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
5 months 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.
5 months ago
Here it is
Attachments
5 months 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.
5 months ago
Fails exactly as with Nixpacks

