Forums

Git pull not updating web app?

Hi,

I've just pushed my code locally to GitHub and then did git pull on the bash console of pythonanywhere. However, I can't see the changes reflected in my web app.

When I do git log on pythonanywhere I can see all pushes in correct order. I've double and triple checked the flow and it all seems OK. Is there a time lag between the updates?

Any other suggestions?

Did you reload your web app after you pulled? Are the files that are being run by your web app the ones that are being changed by the pull?

Yes to both questions.

Reloaded various times, just tried again now. Web app isn't very big ATM, so no chance of editing the wrong files. :) It was some HTML text that was supposed to change...

Have you cleared your browser cache?

Huh, good thought. I do struggle with that on my laptop.

However I've just accessed the site via mobile and different IP address and it's still not updated.

That shouldn't be affected by caching issues, right?

No, it shouldn't. If you've reloaded your web app on PythonAnywhere, then it's running the files that are currently on your disk. If they are not what you expect, then you'll need to trace the path of the data from the disk to your browser to make sure that your code is doing what you think it's doing.

How do I go about tracing it?

You could add some logging to your views, to see which steps your code is actually going through while loading particular views; you could inspect the loaded page in the browser using developer tools to check if rendered HTML is what you'd expect, etc.

I see this when I want to git pull:

fatal: not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

What directory are you in when you run that command? Is it a directory you previously git cloned into?