improve readme: running locally
This commit is contained in:
parent
3de494e511
commit
15d895dd2d
|
@ -17,8 +17,9 @@ You will also need `npm`. Also make sure that you have a C compiler and `make`.
|
||||||
2. Clone this git repository.
|
2. Clone this git repository.
|
||||||
3. In the repository folder, run `mix deps.get`
|
3. In the repository folder, run `mix deps.get`
|
||||||
At this point the setup is good enough for local testing.
|
At this point the setup is good enough for local testing.
|
||||||
You can run `mix ecto setup`, then `iex -S mix phx.server` to get the server running.
|
### Running locally/dev environment
|
||||||
Go to `localhost:4000` to see the page in action.
|
If you run `npm install` in the `assets` subfolder, then you can run `mix ecto setup`, then `iex -S mix phx.server` to get the server running.
|
||||||
|
Go to `localhost:4000` to see the page in action. (If you do not run `npm install` in `assets`, the app will still work, but it will not have assets.)
|
||||||
### Running in prod
|
### Running in prod
|
||||||
To run the application in prod, you need to set a few environment variables, and run a few more commands.
|
To run the application in prod, you need to set a few environment variables, and run a few more commands.
|
||||||
#### Environment variables
|
#### Environment variables
|
||||||
|
|
Loading…
Reference in New Issue