Deploying Hugo the Golang CMS on DigitalOcean - Nginx
Deploying Hugo the Golang CMS on DigitalOcean
Creating a Droplet
I am a bit partial to CentOS. The lastest version as of this writing is CentOS Linux release 7.1.1503 (Core).
Setting up a droplet is always very simple. Just turn it on basically. Upload your ssh keys. Done.
Install Nginx
Add the epel repo:
yum install epel-release
Install
yum install nginx
Start it
service nginx start
systemctl enable nginx
Create the Folders
mkdir -p /var/www/ursite/
chown -R nginx:nginx /var/www
touch /var/www/ursite/index.html - or clone your site
cp /etc/nginx/sites-available/default /etc/nginx/sites-available/ursite
Configure nginx
open the config file: vim /etc/nginx/conf.d/virtual.conf