2013-09-09 16:10:58 +02:00
|
|
|
Static file handler example
|
|
|
|
===========================
|
2013-02-16 02:21:54 -06:00
|
|
|
|
2013-09-09 16:10:58 +02:00
|
|
|
To try this example, you need GNU `make`, `git` and
|
|
|
|
[relx](https://github.com/erlware/relx) 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
|
|
|
|
$ ./_rel/bin/web_server_example console
|
|
|
|
```
|
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.
|