API and Payload to Deploy Workspace Template in different project
atllabsdevops
PROOP

4 months ago

Hi,

I'm trying to copy the workspace template in a newly created project and deploy automatically. What will be the possible payload for it?

Following simple services are there in the template.

1. Deploy PostgreSQL and create a database_url for internal use.
2. The template contains docker image which is pulled from github and built and use the database_url to connect database.

$10 Bounty

2 Replies

Railway
BOT

4 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!


4 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open noahd 4 months ago


You can use Railway's public API to create a project, deploy a postgres service, get the database URL variable and deploy another service with the specified variables.

Reference the docs and playground below:

https://docs.railway.com/guides/public-api

https://railway.com/graphiql


Loading...