8 months ago
Hi, I'm a beginner and don't know how I would follow these instructions to deploy a github repo using Railway:
40 Replies
8 months ago
From the instructions in the header you referenced, you'll want to go to your Railway project (create one if you dont have a project)
then right click on the canvas and click Docmer Image, then enter the docker image provided in the docs you mentioned (gyoridavid/ai-agents-no-code-tools:latest)
Once that's deploying you can add a PORT=8000 variable which will map the port to 8000 as mentioned in the docs, and finally add a domain in the service settings to access this project
Keep in mind I'm not sure if more steps are reequired since I only looked at the header you referenced, but knowing what I told you here should be enough to carry you through most of it
I'd also recommend going through:
It gives a quick rundown of where everything is on Railway and how to use it
it's super buggy - I click empty project and it just thinks forever, I do it again, gives the error "failed to fetch" so I back out and I have 3 empty projects now
8 months ago
that's probably because there's an ongoing incident right now in #🚨|incidents
8 months ago
might be worth waiting til the incident is over 😔
8 months ago
no problem at all 😄
the app is deployed but I'm getting
{
"detail": "Not Found"
}
Project ID: 2c432a7b-889f-40b7-9355-a32600a35e68
8 months ago
Interesting, is this happening during build or during deployment?
8 months ago
oh wait yea this is a docker image, there is no build <:FacePalm:805393285740232704>
8 months ago
my bad my head is in the clouds
8 months ago
those logs are coming from the application then, which is good cause at least we know the app is running, kinda
it's likely just misconfigured at this point, which makes sense I only gave instructions based on what I saw in the paragraph you referenced
yeah, those are the only doc instructions to get it running. clone repo and forward port 8000
8 months ago
although looking at the docs again, it doesn't look like anything else is necassery <:Thinking:1360710341239242762>
8 months ago
yea
8 months ago
what happens if you go to the URL?
8 months ago
ohh, i thought that's from your logs
8 months ago
what's in your logs then?
```Starting Container
FastAPI Starting production server 🚀
Searching for package file structure from directories with
__init__.py files 17:22:57 | config:25 | INFO | Using 8 cores
Importing from /app
module 🐍 server.py
code Importing the FastAPI app object from the module with the following
code:
from server import app
app Using import string: server:app
server Server started at http://0.0.0.0:8000
server Documentation at http://0.0.0.0:8000/docs
Logs:
INFO Started server process [1]
INFO Waiting for application startup.
INFO Application startup complete.
INFO Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)2025-06-16 17:22:58.107 | INFO | server::26 - This server was created by the 'AI Agents A-Z' YouTube channel | {}
2025-06-16 17:22:58.107 | INFO | server::27 - https://www.youtube.com/@aiagentsaz | {}
2025-06-16 17:22:58.107 | INFO | server::28 - Using device: cpu | {}
INFO 100.64.0.2:50280 - "GET / HTTP/1.1" 404
INFO 100.64.0.2:50280 - "GET /favicon.ico HTTP/1.1" 404
INFO 100.64.0.3:23608 - "GET / HTTP/1.1" 404
INFO 100.64.0.3:15990 - "GET / HTTP/1.1" 404```8 months ago
that's interesting, so the app itself is responding with 404
8 months ago
yea maybe that'd be a good idea
8 months ago
though likely case the app is either not functional or doesn't have up-to-date docs which lead us to have misconfigured it
Everything on Railway's side is configured properly, because the app is receiving and replying to requests
8 months ago
I couldn't find any github project for this app either so I can't even check the code to see what we're missing
8 months ago
oh cool
8 months ago
This application has no resource for /
8 months ago
try going to /health instead
8 months ago
it should return {"status": "ok"}
8 months ago
if that works then the app is functioning completely fine
8 months ago
awesome, glad we got this figured out
8 months ago
!s
Status changed to Solved dev • 8 months ago
