aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2025-12-27 14:09:12 -0500
committerJack Jamison <jackqjamison@gmail.com>2025-12-27 14:09:12 -0500
commitd79ee9654260c707564bee1cb0e4f7cce586e879 (patch)
treedd7369287f57480f183c47ad301527b48a9404d2
parentfad3843b2ba6176a4c0834b66e27584fcf7aed17 (diff)
clean up
-rw-r--r--.gitignore1
-rw-r--r--TODO2
-rw-r--r--nginx/homepage-testing.conf13
-rwxr-xr-xscripts/constant-sync.sh5
-rwxr-xr-xscripts/deploy.sh (renamed from scripts/setup.sh)7
-rwxr-xr-xscripts/setup-test.sh5
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
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/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/