Writing to JSON files

mordye137HOBBY

9 months 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

9 months ago

GitHub to Railway is a one way path.


mordye137HOBBY

9 months 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)


9 months 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