paulwinex / paulwinex-com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

paulwinex.com

My personal site project.

Based on Wagtail

Install

git clone https://github.com/paulwinex/paulwinex-com.git
cd paulwinex.com

Create .env file

Change values if needed.

tee -a .env << END
APP_NAME=pw
APP_PORT=8080
DATA_DIR=./data
ORIGIN=https://mydomain.com
END

Build the image

docker-compose build
docker-compose up -d

Init app

docker exec pw-app ./manage.py migrate
docker exec pw-app ./manage.py collectstatic --noinput
docker exec -it pw-app ./manage.py createsuperuser

Setup Nginx

Edit config configs/app.nginx. Change paths to data dir

Link config

ln -s ./configs/app.nginx /etc/nginx/sites-enabled/app.nginx

Check

sudo nginx -t

Reload Nginx

sudo nginx -s reload

Create certificates

apt install -y nginx certbot python3-certbot-nginx

Create certificates

certbot

About


Languages

Language:Python 37.1%Language:HTML 29.9%Language:CSS 22.9%Language:JavaScript 6.9%Language:Dockerfile 2.8%Language:Shell 0.4%