You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ida/pelican See merge request grassrootseconomics/pelican-website-ge!3 |
2 years ago | |
---|---|---|
content | 2 years ago | |
ge-theme | 2 years ago | |
standalone-deploy | 2 years ago | |
.dockerignore | 2 years ago | |
.gitignore | 2 years ago | |
.gitlab-ci.yml | 2 years ago | |
LICENSE | 2 years ago | |
Makefile | 2 years ago | |
README.md | 2 years ago | |
package-lock.json | 2 years ago | |
pelicanconf.py | 2 years ago | |
publishconf.py | 2 years ago | |
requirements.txt | 2 years ago | |
sendemail.py | 2 years ago | |
tasks.py | 2 years ago |
README.md
Grassroots Pelican Webiste
A static website built with pelican.
Development
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
make devserver
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://grassecon.net
# https://grassecon.net