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 | |
| parent | fad3843b2ba6176a4c0834b66e27584fcf7aed17 (diff) | |
clean up
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | TODO | 2 | ||||
| -rw-r--r-- | nginx/homepage-testing.conf | 13 | ||||
| -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 |
6 files changed, 9 insertions, 24 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9fed9cd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +interactive/
\ No newline at end of file @@ -7,4 +7,4 @@ Revamp - [ ] No subtitles in title, better title sizing - [ ] Everything is in sections - [ ] Better h1..h6 styling -- [ ] Clean up project style
\ No newline at end of file +- [ ] Clean up project style (wide container, each element)
\ No newline at end of file diff --git a/nginx/homepage-testing.conf b/nginx/homepage-testing.conf deleted file mode 100644 index 8b308c5..0000000 --- a/nginx/homepage-testing.conf +++ /dev/null @@ -1,13 +0,0 @@ -# http server -server { - listen 80 ; - listen [::]:80 ; - server_name jackjamison.net; - - location / { - root /var/www/homepage; - index index.html; - error_page 404 404.html; - try_files $uri $uri/ =404; - } -}
\ No newline at end of file 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/ |
