2013-09-09 16:10:58 +02:00
|
|
|
Static file handler example
|
|
|
|
===========================
|
2013-02-16 02:21:54 -06:00
|
|
|
|
2013-10-22 09:14:32 +02:00
|
|
|
To try this example, you need GNU `make` and `git` in your PATH.
|
2013-02-16 02:21:54 -06:00
|
|
|
|
2013-09-09 16:10:58 +02:00
|
|
|
To build the example, run the following command:
|
2013-02-16 02:21:54 -06:00
|
|
|
|
2013-09-09 16:10:58 +02:00
|
|
|
``` bash
|
|
|
|
$ make
|
2013-02-16 02:21:54 -06:00
|
|
|
```
|
|
|
|
|
2013-09-09 16:10:58 +02:00
|
|
|
To start the release in the foreground:
|
2013-02-16 02:21:54 -06:00
|
|
|
|
2013-09-09 16:10:58 +02:00
|
|
|
``` bash
|
2014-06-30 10:14:05 +02:00
|
|
|
$ ./_rel/web_server_example/bin/web_server_example console
|
2013-09-09 16:10:58 +02:00
|
|
|
```
|
2013-02-16 02:21:54 -06:00
|
|
|
|
2013-09-09 16:10:58 +02:00
|
|
|
Then point your browser at [http://localhost:8080](http://localhost:8080)
|
|
|
|
to browse the contents of the `priv` directory.
|