a year 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
a year 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
a year ago
that's probably because there's an ongoing incident right now in #🚨|incidents
a year ago
might be worth waiting til the incident is over 😔
a year ago
no problem at all 😄
the app is deployed but I'm getting
{
"detail": "Not Found"
}
Project ID: 2c432a7b-889f-40b7-9355-a32600a35e68
a year ago
Interesting, is this happening during build or during deployment?
a year ago
oh wait yea this is a docker image, there is no build <:FacePalm:805393285740232704>
a year ago
my bad my head is in the clouds
a year 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
a year ago
although looking at the docs again, it doesn't look like anything else is necassery <:Thinking:1360710341239242762>
a year ago
yea
a year ago
what happens if you go to the URL?
a year ago
ohh, i thought that's from your logs
a year ago
what's in your logs then?
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```
a year ago
that's interesting, so the app itself is responding with 404
a year ago
yea maybe that'd be a good idea
a year 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
a year 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
a year ago
oh cool
a year ago
This application has no resource for /
a year ago
try going to /health instead
a year ago
it should return {"status": "ok"}
a year ago
if that works then the app is functioning completely fine
a year ago
awesome, glad we got this figured out
a year ago
!s
Status changed to Solved dev • 11 months ago
