Using Infrastructure as Code in a non-JS project
troytc
PROOP

a month ago

I'm trying to configure Infrastructure as Code (IaC) in my Ruby on Rails project. I can run railway config init just fine, but when I run railway config pull or any other railway config command, I get the following error:


Could not find Railway configuration support for this project. Install the Railway TypeScript SDK, then run this command again: https://github.com/railwayapp/railway-ts-sdk

Caused by:

No such file or directory (os error 2)

Is installing the Railway TypeScript SDK within the project required to use IaC?

Solved

1 Replies

Railway
BOT

a month ago

Yes, Railway IaC currently requires TypeScript. The configuration is authored as a .railway/railway.ts file using the railway npm SDK, and TypeScript is the only supported language at this time. You can add the SDK to your project (e.g. in a top-level package.json or a .railway/ subdirectory) alongside your Rails code, since the IaC file is only used by the CLI and does not affect your app's runtime. More details are in the IaC docs.


Status changed to Awaiting User Response Railway about 1 month ago


Status changed to Solved troytc about 1 month ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...