add deploy task

This commit is contained in:
Yanick Champoux 2024-02-04 13:02:59 -05:00
parent 6ce020f6a1
commit f928cd26b1
2 changed files with 25 additions and 0 deletions

View File

@ -6,6 +6,11 @@ vars:
GREETING: Hello, World! GREETING: Hello, World!
tasks: tasks:
deploy:
deps: [build]
cmds:
- rsync -av build/ bggsell@gilgamesh:public_html
build: build:
cmds: cmds:
- vite build - vite build

View File

@ -0,0 +1,20 @@
server {
listen 443;
listen [::]:443;
ssl_certificate /etc/lego/certificates/_.babyl.ca.crt;
ssl_certificate_key /etc/lego/certificates/_.babyl.ca.key;
server_name bgg.babyl.ca;
access_log /var/log/nginx/bgg.log;
error_log /var/log/nginx/bgg-error.log;
client_max_body_size 10M;
root /home/bggsell/public_html;
index index.html;
location / {
try_files $uri $uri/ $uri.html /index.html =404;
}
}