Forums

Git push to bare repo not working

Hey, I followed the instructions of this blog post: https://blog.pythonanywhere.com/87/

All was well, until the "last" step where I upload the code.

I added the remote to my local repository, but after I pushed the code and it was done uploading, the post-receive hook executed, created the dir, but the code was not there, just an empty folder. Am I doing something wrong? Did I miss a step? I followed the steps and managed to get the post-receive working, which should mean that the other steps worked too right?

I run the ls /var/www/sites/mysite command but it didn't show anything. I also navigated to that path and it still didn't show anything.

What did the push command that you ran locally print out?