... | ... | @@ -32,4 +32,12 @@ Launching production server can be made with |
|
|
```bash
|
|
|
MIX_ENV=prod PORT=4001 elixir --detached -S mix do compile, phx.server
|
|
|
```
|
|
|
You can change the port on which elixir is running on, but you'll probably want to setup a reverse proxy to handle things properly. |
|
|
\ No newline at end of file |
|
|
You can change the port on which elixir is running on, but you'll probably want to setup a reverse proxy to handle things properly.
|
|
|
|
|
|
## Docker
|
|
|
|
|
|
Install and run a postgres server
|
|
|
```
|
|
|
docker pull postgres
|
|
|
docker run --name elixir_pg -e POSTGRES_USER=elixir -e POSTGRES_PASSWORD=elixir -e POSTGRES_DB=storia_dev -p 5432:5432 -d postgres
|
|
|
``` |
|
|
\ No newline at end of file |