Forums

Updating new code

Hi, how is new code updated when I make changes in it? Will I need to clone in bash again to see the changes live? Or what is the process?

Thanks.

If you make changes using the editor inside PythonAnywhere, then you don't need do anything with git; code that runs in consoles can just be run by running it again, while if it's in a website's code you can tell the system to load up changed code by using the "Reload" button on the "Web" page.

If you've made code on your own machine, then you'll need to commit it, then push it to GitHub, then use git pull (not git clone) to pull the changes to PythonAnywhere, and then reload.