Skip to content

Halo Word, the server. Reimagined with Elixir.

Notifications You must be signed in to change notification settings

HaloWordApp/halosir

Repository files navigation

HaloSir

Build Status

HaloSir is the new server for Halo Word, the English -> Chinese dictionary as an extension for Google Chrome.

HaloSir is based on Elixir/Phoenix, and use DETS from Erlang/OTP as storage instead of Redis. The main reason is Redis is consuming too much memory and we don't need that speed of an in-memory database. This is also a good practice ground of developing and maintaining a full Elixir app/service.

Deployment

The OTP release building process is automated through CircleCI. Output tarballs are stored here.

To deploy HaloSir, just:

  • Extract the tarball
  • Put runtime configs under {tarball root}/config/secret.exs, which should replace secret keys and any other production settings
  • Put existing cache under {tarball root}/data if exist