A toy project for Elixir build
|
|
il y a 4 ans | |
|---|---|---|
| assets | il y a 4 ans | |
| config | il y a 4 ans | |
| lib | il y a 4 ans | |
| priv | il y a 4 ans | |
| test | il y a 4 ans | |
| .formatter.exs | il y a 4 ans | |
| .gitignore | il y a 4 ans | |
| README.md | il y a 4 ans | |
| mix.exs | il y a 4 ans | |
| mix.lock | il y a 4 ans |
This project is intended to be a (serious) playground for other Elixir projects of mine in the aspects of build, integration and deployment.
dev or prodIn dev as well as in prod modes, the role used in config/#{mode}.exs must
be created using e.g. the command line : sudo -u postgres createuser -P role_name
(add -d flag to allow database creation)
In dev as well as in prod modes, the role used in config/#{mode}.exs must
be created using e.g. the command line : sudo -u postgres createdb -O role_name db_name
The PostgreSQL role/database must be installed, if required.
To start the server in dev mode :
mix deps.getmix cmd npm install --prefix assetsmix phx.server or iex -S mix phx.server to run within a shellThe server can now be accessed on localhost:4000.