elixir-http-base/readme.md

36 lines
390 B
Markdown
Raw Normal View History

2020-12-16 13:24:50 -06:00
# elixir-http-base
An opinionated, fairly minimal base for an Elixir HTTP server application.
2020-12-16 10:35:31 -06:00
## Develop
```bash
iex -S mix
```
2020-12-28 09:39:49 -06:00
## Lint
```bash
mix dialyzer
mix credo --strict
```
2020-12-17 11:51:19 -06:00
## Test
2020-12-16 10:35:31 -06:00
```bash
mix test
```
2020-12-17 15:23:16 -06:00
## Generate Release
```bash
MIX_ENV=prod mix release
```
## Deploy
```bash
2020-12-17 15:24:55 -06:00
rsync -r build/rel/ $YOUR_HOST:~/my-app
ssh $YOUR_HOST PORT=80 ~/my-app/bin/lytedev daemon
2020-12-17 15:23:16 -06:00
```