I will assume you have a Github account, so the first step is to create a Werker account, I use my Github account to sign up with, I would recommend the same. Go here to grab an account. We want to be able to deploy Hugo as root, so its done correctly, and to be able to restart Nginx once complete. So log into your webserver, where the site lives, and create a new user, this example is creating deployer as the user. »
Instead of using rewrite rules to do this, lets use a 301 redirect, this could improve performance too as the server wont need process rewrites.
For Nginx, the below server block will redirect HTTP to HTTPS, set the server_name and the redirect will send the traffic to the HTTPS version.»
The initial setup and basic usage of docker is quite simple, nut the when and why to use docker, and what is docker is a bit in depth. I read this article which covers it brilliantly. Add the EPEL Repository. Docker installs from the EPEL (Extra Packages for Enterprise Linux) repo, this repo is a community driven repository of ‘non-standard’ packages, so we first need to install this to get Docker. »
Commands for a System Administrator, Part 1 Commands for a System Administrator, Part 2 1. diff diff is used to compare two files, line by line. The most common flags I use are -iyw, ‘i’ for ignored case differences, ‘y’ for a side by side comparison, and ‘w’ to ignore all whitespaces and ‘–suppress-common-lines’ does not show duplicate lines. There are many other options for diff, but these I find give the easiest output to read. »
This guide was tested on CentOS 7, which is using systemd and Mariadb. For those using sysvinit or upstart replace the stop/start commands with service mariadb start and service mariadb stop, where MySQL is installed, replace mariadb with mysql or mysqld e.g. service mysql stop I needed to reset the root password for MariaDB the other day and I couldn’t find any articles with easy copy and paste commands with clear explanation. »