To start your Phoenix server:
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.setup
- Start Phoenix endpoint with
mix phx.server
or inside IEx withiex -S mix phx.server
Now you can visit localhost:4000
from your browser.
Ready to run in production? Please check our deployment guides.
S3_BUCKET
— the primary S3 bucket to use for contentAWS_REGION
— the AWS region for S3AWS_MAILER_REGION
— the AWS region for mailAWS_ACCESS_KEY_ID
— the AWS access key idAWS_SECRET_ACCESS_KEY
— the AWS access secretAPPSIGNAL_PUSH_KEY
— the AppSignal push keyAPPSIGNAL_APP_ENV
—dev
,staging
, orprod
(how we disambiguate environments in AppSignal)SLACK_AUDITING_WEBHOOK
— Slack webhook for audit eventsHCAPTCHA_SITE_KEY
— hCaptcha site keyHCAPTCHA_SECRET
— hCaptcha secretENABLE_CAPTCHAS
— captchas are checked iftrue
(default false for development)WATERMARK_FONT_PATH
— path to the font to use in watermarksINSTANCE_NAME
— user-facing instance name (appears in footer and below logo; not shown if empty)SPN_ARCHIVE_API_KEY
— API key for the Internet Archive SPN API (if provided, Atlos will submit all links to the Internet Archive for persistent archival; key expected in the formmyaccesskey:mysecret
)COMMUNITY_DISCORD_LINK
— link to the community Discord server (shown in onboarding and in Settings)ATTRIBUTE_OPTIONS
— JSON object of attribute options; e.g.,{"type": ["Civilian Harm"], "impact": ["Structure", "Structure/Residential"], "equipment": ["Small Arm", "Munition"]}
AUTOTAG_USER_INCIDENTS
— JSON object of tags to apply to incidents created by non-privileged users; e.g.,["Volunteer"]
DEVELOPMENT_MODE
— whether to run Atlos in development mode (e.g.,TESTING
becomes a valid invite code)HIGHLIGHT_CODE
— Code for Highlight analytics and monitoringRESTRICT_PROJECT_CREATION
— whether to restrict project creation to privileged users only (to enable, set totrue
)ONBOARDING_PROJECT_ID
— the ID of the demo onboarding project template; if unset, the onboarding project will not be created.
- 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