From d79ee9654260c707564bee1cb0e4f7cce586e879 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Sat, 27 Dec 2025 14:09:12 -0500 Subject: clean up --- .gitignore | 1 + TODO | 2 +- nginx/homepage-testing.conf | 13 ------------- scripts/constant-sync.sh | 5 ----- scripts/deploy.sh | 12 ++++++++++++ scripts/setup-test.sh | 5 ----- scripts/setup.sh | 5 ----- 7 files changed, 14 insertions(+), 29 deletions(-) create mode 100644 .gitignore delete mode 100644 nginx/homepage-testing.conf delete mode 100755 scripts/constant-sync.sh create mode 100755 scripts/deploy.sh delete mode 100755 scripts/setup-test.sh delete mode 100755 scripts/setup.sh 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 diff --git a/TODO b/TODO index 0150203..ed17f2c 100644 --- a/TODO +++ b/TODO @@ -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/deploy.sh b/scripts/deploy.sh new file mode 100755 index 0000000..56661c5 --- /dev/null +++ b/scripts/deploy.sh @@ -0,0 +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/ diff --git a/scripts/setup.sh b/scripts/setup.sh deleted file mode 100755 index 49ba2d7..0000000 --- a/scripts/setup.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -cp ./nginx/homepage.conf /etc/nginx/sites-enabled/homepage.conf -mkdir /var/www/homepage/ -rsync -av --delete ./zola-static/public/ /var/www/homepage/ -- cgit v1.2.3