How do I deploy a docker to a new project?
jstamb
HOBBYOP

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:

https://github.com/gyoridavid/aiagentsaz/blob/main/episode_11/guide-start-server.md#deploy-the-server-to-the-cloud

Solved

40 Replies

jstamb
HOBBYOP

8 months ago

n/a


dev
MODERATOR

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


jstamb
HOBBYOP

8 months ago

Ok so basically create a blank project first to access the canvas?


jstamb
HOBBYOP

8 months ago

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


dev
MODERATOR

8 months ago

that's probably because there's an ongoing incident right now in #🚨|incidents


jstamb
HOBBYOP

8 months ago

ah shoot another one :/

yeah I'm stuck on applying changes

1384220407011344600


dev
MODERATOR

8 months ago

might be worth waiting til the incident is over 😔


jstamb
HOBBYOP

8 months ago

For sure. thanks for the help to get going


dev
MODERATOR

8 months ago

no problem at all 😄


jstamb
HOBBYOP

8 months ago

the app is deployed but I'm getting

{
"detail": "Not Found"
}

Project ID: 2c432a7b-889f-40b7-9355-a32600a35e68


dev
MODERATOR

8 months ago

Interesting, is this happening during build or during deployment?


jstamb
HOBBYOP

8 months ago

hmm not sure what you mean


jstamb
HOBBYOP

8 months ago

during build I guess


dev
MODERATOR

8 months ago

oh wait yea this is a docker image, there is no build <:FacePalm:805393285740232704>


dev
MODERATOR

8 months ago

my bad my head is in the clouds


jstamb
HOBBYOP

8 months ago

haha no worries


dev
MODERATOR

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


jstamb
HOBBYOP

8 months ago

yeah, those are the only doc instructions to get it running. clone repo and forward port 8000


dev
MODERATOR

8 months ago

although looking at the docs again, it doesn't look like anything else is necassery <:Thinking:1360710341239242762>


dev
MODERATOR

8 months ago

yea


dev
MODERATOR

8 months ago

what happens if you go to the URL?


jstamb
HOBBYOP

8 months ago

{"detail":"Not Found"}


dev
MODERATOR

8 months ago

ohh, i thought that's from your logs


dev
MODERATOR

8 months ago

what's in your logs then?


jstamb
HOBBYOP

8 months ago

```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```

dev
MODERATOR

8 months ago

that's interesting, so the app itself is responding with 404


jstamb
HOBBYOP

8 months ago

I can try again it was in the middle of the incident


dev
MODERATOR

8 months ago

yea maybe that'd be a good idea


dev
MODERATOR

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


dev
MODERATOR

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



dev
MODERATOR

8 months ago

oh cool


dev
MODERATOR

8 months ago

This application has no resource for /


dev
MODERATOR

8 months ago

try going to /health instead


dev
MODERATOR

8 months ago

it should return {"status": "ok"}


dev
MODERATOR

8 months ago

if that works then the app is functioning completely fine


jstamb
HOBBYOP

8 months ago

ah my bad. I totally read that earlier and forgot


jstamb
HOBBYOP

8 months ago

it's running perfectly normal!


dev
MODERATOR

8 months ago

awesome, glad we got this figured out


dev
MODERATOR

8 months ago

!s


Status changed to Solved dev 8 months ago


Loading...