I have installed a webapp on PAW, which runs perfectly.
I struggle badly with updating it, or better say with a deeper understanding of the workflow. I have a paid account. I tried to followpush deployments post.
After creating the post-receive file. I got stuck. GIT_WORK_TREE=/var/www/sites/mysite git checkout -f after running this the bash declared: fatal: You are on a branch yet to be born
not surprised as I didn't understand what I was doing
!/bin/bash Is this still in PAW bash? I could not locate the address: /var/www/sites/mysite
To anticipate the next hurdle: git remote add pythonanywhere email@example.com:/home/myusername/bare-repos/mysite.git
Does this line should be executed from my local station (I work on pycharm and commit to a git repo)?
As always, many thanks for any consideration, input or a detailed tutorial that bridges the gaps of newbies like me.