How to apply or correctly save file changes on the server?

Hello, after changes on the server .py and .js and .json files how to apply them to the server or save correctly?