two instances
I have a bot that I host with railway and sometimes whenever I deploy and try it, it gives me two instances when it’s not supposed to. Why does it do this and how do I prevent it from doing that?
6 Replies
After deploying, two deployments of your app will be active for a set amount of time before the older is shut down
Iirc the default amount of time is 2 minutes
there’s an environment variable to change the delay, can’t remember what it is though
Oh interesting
If you do know the answer, or find it, can you ping me about it?
will do
You might find these helpful:
- $port
- Can't use RAILWAY_* env vars in shell, nor in interpolated meta-environment variables
- env variable remove deployment timeout
⚠️ experimental feature
You might find these helpful:
- Can't use RAILWAY_* env vars in shell, nor in interpolated meta-environment variables
⚠️ experimental feature
Not helpful, oh well
RAILWAY_DEPLOYMENT_OVERLAP_SECONDS
voila