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:
parent
649e1b97a4
commit
a3d02184f0
|
@ -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
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue