From 8f7c805cd955fe522c75f2c9805134b793a620d7 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Sun, 6 Jul 2025 17:40:34 -0400 Subject: [PATCH] Update deployment script to use /opt/icewatch directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change app directory from /opt/great-lakes-ice-report to /opt/icewatch - Update system user from great-lakes-ice-report to icewatch - Update service file name to icewatch.service - Update all paths and references throughout the script 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- scripts/deploy.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 6a6be76..70413fb 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -108,15 +108,15 @@ echo "✅ Caddy with rate limiting plugin installed successfully!" # Create app directory echo "📁 Setting up app directory..." -sudo mkdir -p /opt/great-lakes-ice-report -sudo chown $USER:$USER /opt/great-lakes-ice-report +sudo mkdir -p /opt/icewatch +sudo chown $USER:$USER /opt/icewatch # Navigate to app directory -cd /opt/great-lakes-ice-report +cd /opt/icewatch -# Create great-lakes-ice-report user for security -echo "👤 Creating great-lakes-ice-report user..." -sudo useradd --system --shell /bin/false --home /opt/great-lakes-ice-report --create-home great-lakes-ice-report +# Create icewatch user for security +echo "👤 Creating icewatch user..." +sudo useradd --system --shell /bin/false --home /opt/icewatch --create-home icewatch # Download additional configuration files from S3 echo "📥 Downloading configuration files..." @@ -124,7 +124,7 @@ S3_BASE_URL="https://greatlakes-conditions.s3.amazonaws.com/scripts" # Download systemd service file echo "📥 Downloading systemd service..." -curl -sSL "$S3_BASE_URL/great-lakes-ice-report.service" | sudo tee /etc/systemd/system/great-lakes-ice-report.service > /dev/null +curl -sSL "$S3_BASE_URL/icewatch.service" | sudo tee /etc/systemd/system/icewatch.service > /dev/null # Download Caddyfile template echo "📥 Downloading Caddy configuration..." @@ -135,10 +135,10 @@ echo "" echo "🚀 Next steps to deploy Great Lakes Ice Report:" echo "" echo "1. Clone your repository:" -echo " git clone git@git.deco.sh:deco/ice.git /opt/great-lakes-ice-report" +echo " git clone git@git.deco.sh:deco/ice.git /opt/icewatch" echo "" echo "2. Set up the application:" -echo " cd /opt/great-lakes-ice-report" +echo " cd /opt/icewatch" echo " npm install" echo " cp .env.example .env" echo " nano .env # Add your MapBox token and admin password" @@ -149,16 +149,16 @@ echo " # Replace 'yourdomain.com' with your actual domain" echo " sudo mv /etc/caddy/Caddyfile.template /etc/caddy/Caddyfile" echo "" echo "4. Set permissions:" -echo " sudo chown -R great-lakes-ice-report:great-lakes-ice-report /opt/great-lakes-ice-report" -echo " sudo chmod 660 /opt/great-lakes-ice-report/.env" +echo " sudo chown -R icewatch:icewatch /opt/icewatch" +echo " sudo chmod 660 /opt/icewatch/.env" echo "" echo "5. Start services:" echo " sudo systemctl daemon-reload" -echo " sudo systemctl enable great-lakes-ice-report caddy" -echo " sudo systemctl start great-lakes-ice-report caddy" +echo " sudo systemctl enable icewatch caddy" +echo " sudo systemctl start icewatch caddy" echo "" echo "6. Check status:" -echo " sudo systemctl status great-lakes-ice-report" +echo " sudo systemctl status icewatch" echo " sudo systemctl status caddy" echo "" echo "🌐 Your Great Lakes Ice Report app will be available at: https://ice.puremichigan.lol"