Skip to content

Commit ef7351c

Browse files
authored
Update and unify dev scripts (#119)
This pull request replaces the previous `live.exs` and `dev.exs` scripts with a new `dev.exs` script based on the Phoenix Playground project that includes both the Controller and LiveView examples. There are multiple benefits of this refactor: - We can work using a single script instead of two - Phoenix Plaground provides autoreload functionality by default - Phoenix Playground simplifies process management and can start a supervision tree - Dependencies are automatically fetched and compiled separately from those in the `mix.exs` file. To start the dev server you just run: ``` iex dev.exs ```
1 parent 23f00f4 commit ef7351c

File tree

3 files changed

+227
-304
lines changed

3 files changed

+227
-304
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,8 @@ mix assets.watch
6262

6363
### Development server
6464

65-
We have a `dev.exs` script that starts a development server.
66-
67-
To run it together with an `IEx` console you can do:
65+
We have a `dev.exs` script based on [Phoenix Playground](https://github.com/phoenix-playground/phoenix_playground) that starts a development server.
6866

6967
```
70-
iex -S mix dev
68+
iex dev.exs
7169
```

0 commit comments

Comments
 (0)