Deployment Script
This commit is contained in:
@@ -6,8 +6,8 @@ set -e
|
||||
echo "🚀 Starting deployment process..."
|
||||
|
||||
# Configuration
|
||||
DEPLOY_PATH="/var/www/typescripttest.manaknightdigital.com"
|
||||
NGINX_CONFIG="/etc/nginx/sites-available/typescripttest.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 typescripttest.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/typescripttest.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/typescripttest.manaknightdigital.com/fullchain.
|
||||
--staple-ocsp \
|
||||
--must-staple \
|
||||
--email ryan@manaknight.com \
|
||||
-d typescripttest.manaknightdigital.com
|
||||
-d wireframev5.manaknightdigital.com/
|
||||
|
||||
# Reload Nginx again after SSL configuration
|
||||
sudo systemctl reload nginx
|
||||
|
||||
Reference in New Issue
Block a user