Skip to content
GitLab
Explore
Sign in
Register
This is an archived project. Repository and other project resources are read-only.
Framuseum
Pickweaver
Wiki
Install
Installation
Installation
· Changes
Page history
Update Installation
authored
Mar 30, 2018
by
duong tam kien
Hide whitespace changes
Inline
Side-by-side
Install/Installation.md
View page @
de8a5f35
...
@@ -32,4 +32,12 @@ Launching production server can be made with
...
@@ -32,4 +32,12 @@ Launching production server can be made with
```
bash
```
bash
MIX_ENV
=
prod
PORT
=
4001 elixir
--detached
-S
mix
do
compile, phx.server
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.
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
## 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