Below you will find pages that utilize the taxonomy term “Nginx”
Easy run your html with docker and Nginx
If you’ve ever needed to quickly run a built or a static html (js and css) site.
In my case it helps to preview and test locally Go Hugo built sites, react built content or preview any site I’m given.
A tool like Browser sync would work perfectly, and gives lots of tools. But a more “real” scenario would be using a true server like Nginx.
First you need to have Docker installed and the the Nginx image.
Easy deploy your react server with Nginx
Now you have your react project and you want to create a simple deploy server.
Install your host server. We are going to use a Nginx proxy server. This is an example for a Debian based system.
sudo aptitude install nginx-light
For this example we don’t need the full Nginx server.
Nginx creates a default host file. Then you can place the content of your build files under /var/www/default and it should be enough.