Platforms
Envlet on Railway
One variable in the Railway service, then envlet run in the start command.
Set the token
railway variables --set ENVLET_TOKEN=envlet_...Start command
npx -y @envlet/cli run -- npm startSet up
- 01
Create a token
Create an identity for Railway and a token for the environment it deploys.
- 02
Set one secret
Add ENVLET_TOKEN in the service's Variables tab or with the Railway CLI, one token per Railway environment.
- 03
Start through Envlet
Set the service start command to envlet run followed by your usual command.
Questions
- Will my app start if Envlet is down?
- No, and that is the point. It retries for a few seconds, then fails so you notice, instead of starting with half an environment.
- Do I still need Railway's own secret store?
- Only for ENVLET_TOKEN. Everything else lives in Envlet, so you rotate in one place.