pelican-website-ge/README.md

878 B

GRASSROOTS NEW STATIC WEBSITE

A static website built with pelican.

INSTRUCTIONS ON HOW TO BUILD

python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
make devserver

With Docker

docker build -t ge-blog .

docker run -p 8000:80 ge-blog

Standalone Deploy

On a new or existing droplet (requires docker and docker-compose)

# Make sure the A name choosen point to the droplet IP
# Replace domain name init-cert.sh (line 8)  and data/nginx.conf (lines 3,16,20,21)

$ cd standalone-deploy && bash init-cert.sh
$ docker build -t ge-blog -f Dockerfile ../
$ docker run -d -p 80:80 -p 443:443 -v $(pwd)/data/certbot/conf:/etc/letsencrypt -v $(pwd)/data/certbot/www:/var/www/certbot ge-blog

# Check if http->https redirect works https://httpstatus.io/
# http://www.stormspirit.tech
# https://www.stormspirit.tech