Compare commits
2 Commits
78cd4ac186
...
182068d991
Author | SHA1 | Date | |
---|---|---|---|
182068d991 | |||
934f90605e |
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# HugoPoi's blog deploy documentation
|
||||||
|
|
||||||
|
* Some deploy code
|
9
deploy.sh
Normal file
9
deploy.sh
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Build
|
||||||
|
hugo
|
||||||
|
# Backup current deploy
|
||||||
|
ssh home.hugopoi.net sudo yunohost backup create --apps my_webapp
|
||||||
|
# Deploy full legacy and new blog
|
||||||
|
rsync -rlgoD --checksum --verbose www/ home.hugopoi.net:/var/www/my_webapp/www/
|
||||||
|
# Deploy only the new hugo blog
|
||||||
|
rsync -rlgoD --verbose --checksum --delete www/v2/ home.hugopoi.net:/var/www/my_webapp/www/v2/
|
|
@ -41,10 +41,10 @@ name = "Home"
|
||||||
url = "/"
|
url = "/"
|
||||||
weight = 1
|
weight = 1
|
||||||
|
|
||||||
[[menu.nav]]
|
# [[menu.nav]]
|
||||||
name = "Blog"
|
# name = "Blog"
|
||||||
url = "/post/"
|
# url = "/post/"
|
||||||
weight = 2
|
# weight = 2
|
||||||
|
|
||||||
# [[menu.nav]]
|
# [[menu.nav]]
|
||||||
# name = "Tags"
|
# name = "Tags"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user