Writing to JSON files

mordye137
HOBBY

a year ago

This is more of a general question than an issue - I have some python code that updates a json file. Whats the relationship between my repo and railway? Do the changes made in Railway update in Github or does it all happen in Railway?

3 Replies

a year ago

GitHub to Railway is a one way path.


mordye137
HOBBY

a year ago

If I were to make changes in my code and push updates, when the server restarts would it retain whatever it had written to the JSON file? (Assuming that update is not included in the GIt push)


a year ago

No it would not, without a volume you would be writing to ephemeral storage.

Please read our volume guide - https://docs.railway.app/guides/volumes


Writing to JSON files - Railway Help Station