Skip to content

A professional-grade Bash script to automate Nginx website deployments from Git repositories. Perfect for quick staging/production deployments.

Notifications You must be signed in to change notification settings

sethysatyajit/Nginx-Website-Deployer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Nginx Website Deployment Script

  • A professional-grade Bash script to automate Nginx website deployments from Git repositories. Perfect for quick staging/production deployments.

✨ Features

  • πŸ”„ One-click website deployment/redeployment
  • 🧹 Automatic cleanup of previous installations
  • πŸ”’ Proper permission management
  • πŸ›‘οΈ Error handling and rollback capabilities
  • πŸ“¦ Dependency auto-installation (Nginx, Git)
  • πŸ–₯️ Supports both HTTP and HTTPS Git URLs

πŸ› οΈ Installation

🐧 Initial Setup Commands

1️⃣ Clone this repository

2️⃣ Make the script executable

  • chmod +x deploy_website.sh

3️⃣ Run the deployment script

  • sudo ./deploy_website.sh

πŸ”„ Redeployment Commands

  • Just run the script again with new URL when prompted
  • sudo ./deploy_website.sh

πŸ“’ Thankyou:

  • Happy Tech Journey 😊

About

A professional-grade Bash script to automate Nginx website deployments from Git repositories. Perfect for quick staging/production deployments.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages