To start your Development server:
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.setup
- Install Node.js dependencies with
npm install
inside theassets
directory - Start Phoenix endpoint with
mix phx.server
Now you can visit localhost:4000
from your browser.
To make a release
POOL_SIZE=4 MIX_ENV=prod mix release
To start the server
_build/prod/rel/mini_bazar/bin/mini_bazar start
_build/prod/rel/mini_bazar/bin/mini_bazar daemon
To restart or stop the server
_build/prod/rel/mini_bazar/bin/mini_bazar stop
_build/prod/rel/mini_bazar/bin/mini_bazar start
add this to your .bashrc or .zsh file or just run it before you run your server
export MINIBAZAR_DATABASE_URL=postgresql://postgres@localhost/mini_bazar_dev
execut on minibazar/
folder
mix ecto.create
mix ecto.migrate
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix