Fix sitemap creation on Docker

Docker is installed at root but priv/ lies in lib/mobilizon-x/
We can use Application.app_dir(:mobilizon, "priv/static") to get the
correct path

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-08-19 15:23:33 +02:00
parent 649e1b97a4
commit a3d02184f0
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -23,7 +23,7 @@ defmodule Mobilizon.Service.SiteMap do
config = [
store: Sitemapper.FileStore,
store_config: [path: "priv/static"],
store_config: [path: Application.app_dir(:mobilizon, "priv/static")],
sitemap_url: Endpoint.url(),
gzip: false
]