The 1.1 version of Mobilizon brings Elixir releases support. An Elixir release is a self-contained directory that contains all of Mobilizon’s code (front-end and backend), it’s dependencies, as well as the Erlang Virtual Machine and runtime (only the parts you need). As long as the release has been assembled on the same OS and architecture, it can be deploy and run straight away. Read more about releases.
Migrating to releases means:
Staying on source releases means:
If you want to migrate to releases, we provide a full guide. You may do this at any time.
To stay on a source release, you just need to check the following things:
config/prod.secret.exs
to config/runtime.exs
.server: true
under Mobilizon.Web.Endpoint
, remove it.
config :mobilizon, Mobilizon.Web.Endpoint,
- server: true,
/var/lib/mobilizon/uploads
. To keep it in the previous uploads/
directory, just add the following line to config/runtime.exs
:
config :mobilizon, Mobilizon.Web.Upload.Uploader.Local, uploads: "uploads"
Or you may use any other directory where the mobilizon
user has write permissions.
/var/lib/mobilizon/geo/GeoLite2-City.mmdb
. To keep it in the previous priv/data/GeoLite2-City.mmdb
directory, just add the following line to config/runtime.exs
:
config :geolix, databases: [
%{
id: :city,
adapter: Geolix.Adapter.MMDB2,
source: "priv/data/GeoLite2-City.mmdb"
}
]
Or you may use any other directory where the mobilizon
user has read permissions.