To start your Phoenix server:
- Run
mix setupto install and setup dependencies - Start Phoenix endpoint with
mix phx.serveror inside IEx withiex -S mix phx.server
Now you can visit localhost:4000 from your browser.
On fresh installations, it will complain about a missing SECRET_KEY_BASE and PHX_GITHUB_TOKEN, but provide some pointers about how to get those.
Ready to run in production? Please check our deployment guides.
- 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
The secret_key_base needs to be changed. It would compile, but it would break upon running. This is intentional, set your own, secret, secret_key_base and keep it basically secret.
Other than that, here you go:
docker build . --build-arg secret_key_base=AtLeast64BytesOfRandomCharacters -t posa:latest
docker run -p 4000:4000 posa:latest
If you update the elixir-version, please follow the following steps:
- update
.tool-versions - check app and dependencies
- run
openshift/bin/update-build-image - commit
Dockerfileand changed Openshift-YAMLs - push changes
- apply the openshift-config
- maybe check the imagestream and start a build (may be done automatically)