Need to retrieve source code - deployed via CLI without GitHub repo
jubstaaa
HOBBYOP

3 months ago

Hi, I deployed my backend project via Railway CLI a while ago without connecting a GitHub repository. Unfortunately, my local project files have been deleted. The project is still running and rebuilding on Railway. Is there any way to retrieve my source code or access the Docker image/build files? I have no other copy of the code. Thank you.

Solved

1 Replies

Status changed to Awaiting Railway Response Railway 3 months ago


sam-a
EMPLOYEE

2 months ago

We don't store retrievable copies of source code uploaded via railway up. However, since your service is still running, you can use railway ssh to open a shell session inside the running container and access the files on the filesystem. Note that railway ssh does not support SCP/SFTP, so you would need to copy file contents manually (e.g., using cat) or push them to a remote Git repository from within the container.


Status changed to Awaiting User Response Railway 2 months ago


Railway
BOT

2 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...