pelican-website-ge/README.md

35 lines
878 B
Markdown
Raw Normal View History

2021-09-17 09:02:18 +02:00
# GRASSROOTS NEW STATIC WEBSITE
A static website built with pelican.
## INSTRUCTIONS ON HOW TO BUILD
```angular2html
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
make devserver
```
2021-09-21 13:54:31 +02:00
## With Docker
docker build -t ge-blog .
docker run -p 8000:80 ge-blog
2021-09-17 09:02:18 +02:00
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/
# http://www.stormspirit.tech
# https://www.stormspirit.tech
```