diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-12-27 14:09:12 -0500 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-12-27 14:09:12 -0500 |
| commit | d79ee9654260c707564bee1cb0e4f7cce586e879 (patch) | |
| tree | dd7369287f57480f183c47ad301527b48a9404d2 /scripts | |
| parent | fad3843b2ba6176a4c0834b66e27584fcf7aed17 (diff) | |
clean up
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/constant-sync.sh | 5 | ||||
| -rwxr-xr-x | scripts/deploy.sh (renamed from scripts/setup.sh) | 7 | ||||
| -rwxr-xr-x | scripts/setup-test.sh | 5 |
3 files changed, 7 insertions, 10 deletions
diff --git a/scripts/constant-sync.sh b/scripts/constant-sync.sh deleted file mode 100755 index c016b44..0000000 --- a/scripts/constant-sync.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -while true; do - rsync -av --delete ./zola-static/public/ /var/www/homepage/ - sleep 5 # wait 5 seconds before the next sync -done diff --git a/scripts/setup.sh b/scripts/deploy.sh index 49ba2d7..56661c5 100755 --- a/scripts/setup.sh +++ b/scripts/deploy.sh @@ -1,5 +1,12 @@ #!/bin/bash +# grab latest +git pull + +# setup gninx cp ./nginx/homepage.conf /etc/nginx/sites-enabled/homepage.conf mkdir /var/www/homepage/ + +# build and sync zola +(cd zola-static && zola build) rsync -av --delete ./zola-static/public/ /var/www/homepage/ diff --git a/scripts/setup-test.sh b/scripts/setup-test.sh deleted file mode 100755 index 133705e..0000000 --- a/scripts/setup-test.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -cp ./nginx/homepage-testing.conf /etc/nginx/sites-enabled/homepage.conf -mkdir /var/www/homepage/ -rsync -av --delete ./zola-static/public/ /var/www/homepage/ |
