andrei @markeev.com ยท Nov 19

Many people don't know how to debug NGINX locally. It's not hard at all. First, install nginx. ๐Ÿ’ป Mac users: `brew install nginx` ๐Ÿ–ฅ๏ธ Windows users: download and unpack archive as described in the docs: nginx.org/en/docs/wind... 1/2

3 likes 1 replies

?

Replies

andrei ยท Nov 19

๐Ÿ‘จโ€๐Ÿ’ป Next, take this simple 60-line script and change it according to your setup: gist.github.com/andrei-marke... โœจ Run it! `node nginx-dev-server.js` ๐Ÿ‘€ The script will watch for changes in your nginx.conf and instantly reload nginx. 2/2