Deployment Script
This commit is contained in:
@@ -6,8 +6,8 @@ set -e
|
|||||||
echo "🚀 Starting deployment process..."
|
echo "🚀 Starting deployment process..."
|
||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
DEPLOY_PATH="/var/www/typescripttest.manaknightdigital.com"
|
DEPLOY_PATH="/var/www/wireframev5.manaknightdigital.com/"
|
||||||
NGINX_CONFIG="/etc/nginx/sites-available/typescripttest.manaknightdigital.com"
|
NGINX_CONFIG="/etc/nginx/sites-available/wireframev5.manaknightdigital.com/"
|
||||||
|
|
||||||
# Build the application
|
# Build the application
|
||||||
echo "📦 Building application..."
|
echo "📦 Building application..."
|
||||||
@@ -33,7 +33,7 @@ if [ ! -f "$NGINX_CONFIG" ]; then
|
|||||||
sudo tee $NGINX_CONFIG > /dev/null <<EOF
|
sudo tee $NGINX_CONFIG > /dev/null <<EOF
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name typescripttest.manaknightdigital.com;
|
server_name wireframev5.manaknightdigital.com/;
|
||||||
root $DEPLOY_PATH;
|
root $DEPLOY_PATH;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ echo "🔄 Reloading Nginx..."
|
|||||||
sudo systemctl reload nginx
|
sudo systemctl reload nginx
|
||||||
|
|
||||||
# Setup SSL with Certbot if not already configured
|
# 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..."
|
echo "🔒 Setting up SSL with Let's Encrypt..."
|
||||||
sudo certbot --nginx \
|
sudo certbot --nginx \
|
||||||
--non-interactive \
|
--non-interactive \
|
||||||
@@ -74,7 +74,7 @@ if [ ! -f "/etc/letsencrypt/live/typescripttest.manaknightdigital.com/fullchain.
|
|||||||
--staple-ocsp \
|
--staple-ocsp \
|
||||||
--must-staple \
|
--must-staple \
|
||||||
--email ryan@manaknight.com \
|
--email ryan@manaknight.com \
|
||||||
-d typescripttest.manaknightdigital.com
|
-d wireframev5.manaknightdigital.com/
|
||||||
|
|
||||||
# Reload Nginx again after SSL configuration
|
# Reload Nginx again after SSL configuration
|
||||||
sudo systemctl reload nginx
|
sudo systemctl reload nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user