elixir-maru / maru

Elixir RESTful Framework
https://maru.readme.io
BSD 3-Clause "New" or "Revised" License
1.32k stars 84 forks source link

Maru might not allow for dynamic configuration #52

Closed ghost closed 7 years ago

ghost commented 7 years ago

Don't shoot me if I'm wrong, but I think this is an issue with Maru. The context is rather simple: I modified the configuration using Application.put_env before starting my dependencies such as Maru, but for some reason Maru does not respect this new configuration, even though when I use Application.get_env it reports the new configuration just as you would expect.

I would love to fix it myself, but unfortunately I have no clue about what is going on, because the soruce suggests Maru does load the configuration after it is started. Is there any chance you could look into it or tell me that it doesn't have anything to do with Maru? That would be really great. For more information, see samvv/elixir-takeoff#1.

ghost commented 7 years ago

Whoops, turned out it was a simple mistake. I forgot to add the :persistent flag. Never mind me. 😉

falood commented 7 years ago

I'm sorry I haven't get your point but it seems you have found your answer 🙂 feel free to leave me a message if anything I can help