Penv Cloud
Start free
Docs
Reference

Railway

Move variables to and from a Railway environment.

Move variables to and from a Railway environment.

Connection

WhatThis provider
VendorRailway
Keyrailway-vars
Availabilityavailable. You can connect it today.
Credential we holdrailway-token
Values read backyes
Activationon-request

Directions

DirectionWhat it does
importWe read names and values out of the store into your environment.
exportWe write names and values from your environment into the store.

Activation

on-request. A new value waits there. We can deploy to activate it, and the sync form asks you first.

Conflict policies

DirectionPolicies you can pick
importskip_existing, new_version, fail
exportcreate_only, overwrite, overwrite_and_prune

How syncs work says what each one does.

Connect

Paste a credential from the vendor. We seal it and never show it again.

FieldLabelKindRequiredWhat it is
tokenTokensecret; we mask it here and seal ityes

Mapping fields

You answer these once per environment you map.

FieldLabelKindRequiredAdvancedWhat it is
projectIdProjecttextyesnoThe project's id, from its URL in the Railway dashboard.
environmentIdEnvironmenttextyesnoRailway's own environment id. Production and staging are different ids.
serviceIdServicetextnoyesLeave empty to write the environment's shared variables instead of one service's.
deployAfterSyncRedeploy after each syncyes or noyesyesOff, values wait for your next deploy. On, Railway redeploys this service immediately. Starts at false.

Required permissions

We probe for these when we verify the connection.

PermissionDirectionsBlockingWithout it
me:readevery directionyesWe cannot confirm which Railway account this token belongs to.
variables:readimportyesImport cannot read variable values.
variables:writeexportyesExport cannot write anything.