4 months ago
when using the rollback feature the source code is unchanged
10 Replies
4 months ago
Railway does not modify the source code. It only reads the source code.
4 months ago
Rolling back a service only routes all traffic to a previous deployment.
4 months ago
According to Railway docs:
A deployment rollback will revert to the previously successful deployment. Both the Docker image and custom variables are restored during the rollback process.4 months ago
According to Sam's DMs more like
would it be more intuitive for the code of the railway function to also change when rolling back a function?
because, when i look at the UI i see code differing from the function that is actively running. this is quite confusing as a user
ive edited the code of a rolled-back function and caused it to brick some stuff twice at this point
So as it is, "source code" is basically just a "setting" from the standpoint of the platform. And what you see everywhere in the UI, regardless of which deployment you rollback to, is the latest values you've configured as we consider this a "desired state".
We've talked internally before about whether this is desirable. I understand the confusion for sure.
For now at least you can copy/paste the source code from the deployment you rolled back to

