DEV Community

Mohammed Suhail Chinya Salimpasha
Mohammed Suhail Chinya Salimpasha

Posted on

Deploying a static website on NGINX under 2min & single command

Nginx Simple Webserver can awesomely serve static web assets -- Deploying one shouldn't be hard and time-consuming.

Nginx-Auto Automates this for you :) https://github.com/chinyasuhail/nginx-auto


Note

⚠️ Remember to Point your domain (FQDN) to the server’s IP by adding an A record before proceeding further
(example.com in “A” 192.168.0.1)

⚠️ Add a www CNAME pointing to your root domain (www.example.com → example.com)

🙌 SSH into your instance and run the Installer; As simple as that!


wget -N https://raw.githubusercontent.com/chinyasuhail/nginx-auto/master/install.sh; sudo chmod +x install.sh; sudo ./install.sh

🧙 Now FTP/ SFTP or Use a magic wand to move your assets into


/var/www/<your-domain-name-used-for-installation>

🆘 Ran into trouble? Need a fresh restart? Use the Uninstall Command.


wget -N https://raw.githubusercontent.com/chinyasuhail/nginx-auto/master/uninstall.sh; sudo chmod +x uninstall.sh; sudo ./uninstall.sh

Top comments (0)