how to host python backend with react frontend on railway
Hello, I am new to railway, I am using aiohttp python socketio async server with react frontend. This is error I got:
Nixpacks build failed
Nixpacks was unable to generate a build plan for this app.
Please check the documentation for supported languages: https://nixpacks.com
The contents of the app directory are:
I’ve added a procfile which is : python link to my backend. Is this all I need to add or is there something I am missing. Any help would be appreciated thanks
Getting Started | Nixpacks
App source + Nix packages + Docker = Image
262 Replies
Project ID:
N/A
N/A
can you share a link to your repo?
It’s privated tho it’s basically:
Folder1forbackend:
Inside> myserver.py
Folder2forfrontend:
Inside>
Folder> just some js and html files:
package-lock.json
package.json
.gitignore file
Procfile
This is basically exactly how it’s like
create react app?
There’s also plenty of other files in the folder 2 file for react
But I’m wondering what is the guidelines for hosting this cuz it keeps crashing
?
i could give you exact guide lines if i could see the repo
damn cuz it’s not just my repo
Dk what u mean by this
I’ve created a react app yes
using what? create-react-app or vite
create-react-app pretty sure
can i see a screenshot of the repo lol
you arent giving me much to work with
Alr For sure bro lol my bad
Wanna see something specific
lets focus on getting the frontend running first, so show me a screenshot of the frontend folder