Deployment Script Correction

This commit is contained in:
Possible
2025-01-30 18:05:10 +01:00
parent e46df3c305
commit f7dc9da700
+5 -5
View File
@@ -6,8 +6,8 @@ set -e
echo "🚀 Starting deployment process..."
# Configuration
DEPLOY_PATH="/var/www/wireframev5.manaknightdigital.com/"
NGINX_CONFIG="/etc/nginx/sites-available/wireframev5.manaknightdigital.com/"
DEPLOY_PATH="/var/www/wireframev5.manaknightdigital.com"
NGINX_CONFIG="/etc/nginx/sites-available/wireframev5.manaknightdigital.com"
# Build the application
echo "📦 Building application..."
@@ -33,7 +33,7 @@ if [ ! -f "$NGINX_CONFIG" ]; then
sudo tee $NGINX_CONFIG > /dev/null <<EOF
server {
listen 80;
server_name wireframev5.manaknightdigital.com/;
server_name wireframev5.manaknightdigital.com;
root $DEPLOY_PATH;
index index.html;
@@ -65,7 +65,7 @@ echo "🔄 Reloading Nginx..."
sudo systemctl reload nginx
# Setup SSL with Certbot if not already configured
if [ ! -f "/etc/letsencrypt/live/wireframev5.manaknightdigital.com//fullchain.pem" ]; then
if [ ! -f "/etc/letsencrypt/live/wireframev5.manaknightdigital.com/fullchain.pem" ]; then
echo "🔒 Setting up SSL with Let's Encrypt..."
sudo certbot --nginx \
--non-interactive \
@@ -74,7 +74,7 @@ if [ ! -f "/etc/letsencrypt/live/wireframev5.manaknightdigital.com//fullchain.pe
--staple-ocsp \
--must-staple \
--email ryan@manaknight.com \
-d wireframev5.manaknightdigital.com/
-d wireframev5.manaknightdigital.com
# Reload Nginx again after SSL configuration
sudo systemctl reload nginx