Skip to content
Best way to get code built with dev.new
Anonymous
OP

a month ago

I've built a project with a service using dev.new. I'd like to continue working on it locally and want to be able to get the code that the agent put together. What's the recommended way to do this?

$10 Bounty

1 Reply

Status changed to Awaiting Railway Response Railway • about 1 month ago


Railway
BOT

a month ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway • about 1 month ago


There isn't an official way but I've just tested this and it worked:

  1. Create a repository in Github
  2. Create a fine-grained token scoped only to that Github repository with read and write access to the contents scope
  3. Have the dev.new agent push the contents of the application to that repository with the token

The request to the agent looks something like this:

Help me push the current codebase to the repository <REPO_LINK> with the Github token github_pat_<...>.

I'd strongly recommend revoking the token after this action.

The other way to obtain the source code is to go into the Console tab of your service, go to the app folder in the filebrowser, and download the code files one by one. This will only work if the agent didn't set up a custom Dockerfile that didn't copy the codebase into the final image.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...