pelican-website-ge/README.md

28 lines
762 B
Markdown
Raw Permalink Normal View History

2021-10-27 16:07:23 +02:00
# Grassroots Pelican Webiste
2021-09-17 09:02:18 +02:00
A static website built with pelican.
2021-10-27 16:07:23 +02:00
## Development
2021-09-17 09:02:18 +02:00
2021-10-27 16:07:23 +02:00
```sh
2021-11-01 06:58:23 +01:00
python3 -m venv .venv
source .venv/bin/activate
2021-09-17 09:02:18 +02:00
pip install -r requirements.txt
make devserver
```
2021-10-08 12:13:43 +02:00
## Standalone Deploy
__On a new or existing droplet (requires docker and docker-compose)__
```sh
# 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/
2021-10-27 16:07:23 +02:00
# http://grassecon.net
# https://grassecon.net
2021-10-08 12:13:43 +02:00
```