Directory Listing
scotwllm
HOBBYOP

10 months ago

Is there a way to get a directory listing like you would see with Filezilla? I know I've uploaded a file via GitHub, but it doesn't show up when I try to access it over the Internet.

$10 Bounty

7 Replies

Railway
BOT

10 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


10 months ago

You can SSH in and run a simple ls command!



enlorik
HOBBY

10 months ago

You absolutely can see what’s on the filesystem, but not in the same “index of /” way Apache/NGINX sometimes give you for free.

On Railway there are two different things:

-what your app serves over HTTP

-what’s actually on the container’s filesystem

The browser only sees the first one. If you just want a FileZilla-style directory listing to check that the file is really there, do it via SSH with the Railway CLI.

Something like this:

# 1) Log in

railway login

# 2) From your project folder (linked to the Railway service):

railway ssh -- ls -lah

If you copy the SSH command from the dashboard (right-click service → “Copy SSH command”), you can also do:

railway ssh --project=... --environment=... --service=... -- ls -lah

That runs ls -lah inside the running container and prints the files, similar to what you’d see in FileZilla.

If you actually want a directory listing over the Internet (in the browser), you have to add that yourself in the app: e.g. serve that folder as static files or create a small endpoint that reads the directory and returns HTML/JSON. Railway doesn’t automatically expose the container filesystem as a browsable “index of /”.


scotwllm
HOBBYOP

10 months ago

Hi all -- I really appreciate all your support. It occurred to me that since I'm using GitHub for deployment, it would have copies of everything uploaded to Railway. I'm on the 30-day trial version of Railway. Is SSH included with that version? I looked all over the place and couldn't find it.


scotwllm

Hi all -- I really appreciate all your support. It occurred to me that since I'm using GitHub for deployment, it would have copies of everything uploaded to Railway. I'm on the 30-day trial version of Railway. Is SSH included with that version? I looked all over the place and couldn't find it.

10 months ago

no different, whenever you have an account with active service, you can use railway cli and ssh command

https://docs.railway.com/guides/cli#ssh


10 months ago

So yeah ssh is a free feature


Welcome!

Sign in to your Railway account to join the conversation.

Loading...