dealing with errors

This commit is contained in:
notnull 2023-11-02 19:17:28 -04:00
parent ff4218d1d3
commit 94016435f3
2 changed files with 9 additions and 3 deletions

View File

@ -76,6 +76,8 @@ I guess the only remaining thing to do is try it!
## 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!
```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 - 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 &&

View File

@ -2,6 +2,4 @@
# /var/www/services.anarchyplanet.org/update.sh
cd /var/www/services.anarchyplanet.org
git pull origin master
mkdocs build
chgrp -R www-data public_html
git pull origin master && mkdocs build && chgrp -R www-data public_html