# nginxere
Shell alias to ad-hoc-start up a nginx in current folder for developing and
prototyping.

# Install
Paste the following to your `.bashrc` or `.zshrc`.

```shell
alias nginxere="(which nginx > /dev/null 2>&1) && export nginxconf=$(mktemp /tmp/nginx.conf.XXXXX) && echo \"master_process off;daemon off;events{}http{access_log /dev/stdout;index index.html;server{listen 8080;location /{root $(pwd);}}}\" > \$nginxconf && echo \"Serving $(pwd) on http://localhost:8080\nPress CTRL-C to stop.\" && nginx -c \$nginxconf && rm \$nginxconf && echo \"\nDone.\""
```

Restart your terminal (or re-source your profile) and type `nginxere`.
A nginx is started on http://localhost:8080 and logs to `<STDOUT>`.

Happy serving.


# nginxere
Shell alias to ad-hoc-start up a nginx in current folder for developing and
prototyping.

# Install
Paste the following to your `.bashrc` or `.zshrc`.

```shell
alias nginxere="(which nginx > /dev/null 2>&1) && export nginxconf=$(mktemp /tmp/nginx.conf.XXXXX) && echo \"master_process off;daemon off;events{}http{access_log /dev/stdout;index index.html;server{listen 8080;location /{root \$(pwd);}}}\" > \$nginxconf && echo \"Serving \$(pwd) on http://localhost:8080\nPress CTRL-C to stop.\" && nginx -c \$nginxconf && rm \$nginxconf && echo \"\nDone.\""
```

Restart your terminal (or re-source your profile) and type `nginxere`.
A nginx is started on http://localhost:8080 and logs to `<STDOUT>`.

Happy serving.


Fix current pwd to adhoc pwd
Fix current pwd to adhoc pwd
