dealing with errors
This commit is contained in:
parent
ff4218d1d3
commit
94016435f3
@ -76,6 +76,8 @@ I guess the only remaining thing to do is try it!
|
|||||||
|
|
||||||
## Dealing with errors
|
## Dealing with errors
|
||||||
|
|
||||||
|
### there are unstashed changes in website directory
|
||||||
|
|
||||||
So it looks like the hook sends the log of the hook to the local stdout, which is cool! I had some files in it and so it looks like the pull didn't work, but it still built the documents. Might want to build in some error handling, but for now going to try again!
|
So it looks like the hook sends the log of the hook to the local stdout, which is cool! I had some files in it and so it looks like the pull didn't work, but it still built the documents. Might want to build in some error handling, but for now going to try again!
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
@ -94,3 +96,9 @@ remote: INFO - Cleaning site directory
|
|||||||
remote: INFO - Building documentation to directory: /var/www/services.anarchyplanet.org/public_html
|
remote: INFO - Building documentation to directory: /var/www/services.anarchyplanet.org/public_html
|
||||||
remote: INFO - Documentation built in 0.54 seconds
|
remote: INFO - Documentation built in 0.54 seconds
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### if files in the website directory have changed
|
||||||
|
|
||||||
|
When I stashed all the changes in the directory, this meant there was no update.sh. The script should pull before building; not sure why it didn't?
|
||||||
|
|
||||||
|
I'll try changing it to use &&
|
||||||
|
@ -2,6 +2,4 @@
|
|||||||
# /var/www/services.anarchyplanet.org/update.sh
|
# /var/www/services.anarchyplanet.org/update.sh
|
||||||
|
|
||||||
cd /var/www/services.anarchyplanet.org
|
cd /var/www/services.anarchyplanet.org
|
||||||
git pull origin master
|
git pull origin master && mkdocs build && chgrp -R www-data public_html
|
||||||
mkdocs build
|
|
||||||
chgrp -R www-data public_html
|
|
||||||
|
Loading…
Reference in New Issue
Block a user