From db9a372547a71279402a59ac66a29e15b65ec841 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Tue, 1 Apr 2025 22:01:32 -0500 Subject: migrate back to cleberg.net --- content/blog/2024-04-08-docker-local-web-server.org | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'content/blog/2024-04-08-docker-local-web-server.org') diff --git a/content/blog/2024-04-08-docker-local-web-server.org b/content/blog/2024-04-08-docker-local-web-server.org index ee8ea3a..b768c44 100644 --- a/content/blog/2024-04-08-docker-local-web-server.org +++ b/content/blog/2024-04-08-docker-local-web-server.org @@ -76,7 +76,7 @@ To see the updates, you can delete the previous container in the GUI or run =docker run= command below. #+begin_src sh -docker run -it -d -p 8000:80 --name web -v ~/Source/cmc.pub/.build:/usr/share/nginx/html -v ~/Source/cmc.pub/nginx-config.conf:/etc/nginx/conf.d/default.conf nginx +docker run -it -d -p 8000:80 --name web -v ~/Source/cleberg.net/.build:/usr/share/nginx/html -v ~/Source/cleberg.net/nginx-config.conf:/etc/nginx/conf.d/default.conf nginx #+end_src Here's an example of my development configuration file. @@ -84,14 +84,14 @@ Here's an example of my development configuration file. #+begin_src conf # nginx-config.conf server { - server_name cmc.pub www.cmc.pub; + server_name cleberg.net www.cleberg.net; root /usr/share/nginx/html; index index.html; autoindex on; - access_log /var/log/nginx/cmc.pub.access.log; - error_log /var/log/nginx/cmc.pub.error.log; + access_log /var/log/nginx/cleberg.net.access.log; + error_log /var/log/nginx/cleberg.net.error.log; location / { try_files $uri $uri/ =404; @@ -109,7 +109,7 @@ server { I am currently blogging with [[https://emacs.love/weblorg/][weblorg]], which uses a custom =publish.el= file to build the static site. Within this file, I have configured my deployment process to check for the =ENV= variable in thesh and if it's set to =prod=, the script -will set the base URLs to =https://cmc.pub=. If not, it sets the base URLs +will set the base URLs to =https://cleberg.net=. If not, it sets the base URLs to =localhost:8000= (which matches the port used in the container above). Therefore, I have modified my =build.sh= script to build with =localhost= URLs @@ -123,7 +123,7 @@ if [ "$ENV" == "prod" ]; then echo "Environment = Production" && \ rm -rf .build/* && \ emacs --script publish.el && \ - scp -r .build/* ubuntu:/var/www/cmc.pub/ + scp -r .build/* ubuntu:/var/www/cleberg.net/ else echo "Environment = Development" && \ rm -rf .build/* && \ -- cgit v1.2.3-70-g09d2