Posts List

Fixing GIT https certificate problem (insecure workaround)

If you are using a git repository over https protocol you may encounter error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://your-git-repo fatal: HTTP request failed

Git deployment using post-receive hook

Let’s assume you have configured your brand new git repository on a brand new server and now you want to setup it in a way that every push done on a master branch update your production directory. How can you achieve that? You can use git hooks feature. In hooks/ directory in your git repo you can find a file called post-receive, take a look at quick example below: {% codeblock lang:bash %} #!