Compare commits
No commits in common. "38adb85d2c872936a54fa8fa58476241bf007e84" and "5a3be8e5464921153c4edee783d5f37e50974abe" have entirely different histories.
38adb85d2c
...
5a3be8e546
16
README.md
16
README.md
|
@ -1,17 +1,3 @@
|
|||
# HugoPoi's blog deploy documentation
|
||||
|
||||
1. Get the assets
|
||||
`rsync -a -C --progress home.hugopoi.net:/var/www/my_webapp/www/.content.EZtzwPjb/binary www/.content.EZtzwPjb`
|
||||
I should put this in git lfs
|
||||
|
||||
## Local mode
|
||||
|
||||
1. `hugo`
|
||||
1. `docker compose up`
|
||||
|
||||
## Dev mode with hugo live reload
|
||||
|
||||
1. `export UID GID=$(id -g)`
|
||||
1. `docker compose -f docker-compose.yml -f docker-compose.dev.yml up`
|
||||
1. Go to the [home](http://localhost:8080/)
|
||||
|
||||
* Some deploy code
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
version: "3"
|
||||
|
||||
services:
|
||||
web:
|
||||
volumes:
|
||||
- ./docker-nginx-conf/enable-hugo-reverse-proxy.conf:/etc/nginx/enable-hugo-reverse-proxy.conf
|
||||
hugo:
|
||||
image: frankywahl/hugo
|
||||
working_dir: "/app/v2"
|
||||
user: "${UID}:${GID}"
|
||||
volumes:
|
||||
- ./:/app
|
||||
command: server --buildDrafts --bind 0.0.0.0
|
|
@ -7,8 +7,15 @@ services:
|
|||
- "8080:80"
|
||||
volumes:
|
||||
- ./www:/var/www/html
|
||||
- ./docker-nginx-conf/default.conf:/etc/nginx/conf.d/default.conf
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
php-fpm:
|
||||
image: php:8-fpm
|
||||
volumes:
|
||||
- ./www:/var/www/html
|
||||
hugo:
|
||||
image: mbentley/hugo
|
||||
working_dir: "/data"
|
||||
user: "${UID}:${GID}"
|
||||
volumes:
|
||||
- ./v2:/data
|
||||
command: server -D --bind 0.0.0.0
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
location /v2 {
|
||||
proxy_pass http://hugo:1313/v2;
|
||||
}
|
|
@ -6,7 +6,9 @@ server {
|
|||
root /var/www/html;
|
||||
try_files $uri $uri/ /index.php;
|
||||
|
||||
include /etc/nginx/enable-hugo-reverse-proxy.conf* ;
|
||||
location /v2 {
|
||||
proxy_pass http://hugo:1313/v2;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
Loading…
Reference in New Issue
Block a user