mirror of
https://github.com/facundoolano/jorge.git
synced 2024-12-24 21:58:15 +01:00
add deploy files
This commit is contained in:
parent
190fa0073a
commit
263610807b
2 changed files with 25 additions and 0 deletions
3
docs/Makefile
Normal file
3
docs/Makefile
Normal file
|
@ -0,0 +1,3 @@
|
|||
deploy:
|
||||
jorge build
|
||||
rsync -vPrz --delete target/ root@olano.dev:/var/www/jorge
|
22
docs/nginx-sites-available
Normal file
22
docs/nginx-sites-available
Normal file
|
@ -0,0 +1,22 @@
|
|||
# helper to get a var with the uri with stripped trailing slash
|
||||
map $uri $uri_no_trailing_slash {
|
||||
"~^(?P<path>.+?)/$" $path;
|
||||
default $uri;
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
charset utf-8;
|
||||
|
||||
root /var/www/jorge;
|
||||
|
||||
server_name jorge.olano.dev;
|
||||
|
||||
location / {
|
||||
# First attempt to serve request as file, then as directory.
|
||||
# also handle the case where there's a file instead of a dir, but
|
||||
# the request comes with trailing slash --we still want to serve the file in that case.
|
||||
# otherwise respond 404.
|
||||
try_files $uri $uri.html $uri/ $uri_no_trailing_slash $uri_no_trailing_slash.html =404;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue