adrianhurt/play-multidomain-seed

start command not working

enpassant opened this issue · 2 comments

(Thank you very much for this project, it is very useful!)

If I use start command then for all url (except /status) I get the following message:

ADMIN Handler Not Found
You requested: /[URL]

[play-multidomain-seed] $ start -Dconfig.resource=shared.prod.conf // works fine
[play-multidomain-seed] $ start -Dconfig.resource=application.conf // not working
[play-multidomain-seed] $ start // not working

I don't see what is the difference between the two configuration files.

Would you tell me why not working the program with the application.conf file?

Hi!

Thank you for your issue. It is great to know this project is useful.

I made that question to myself when I was writting the documentation. It's a bit weird. I've been investigating and the problem is that the app doesn't take the application global (Global.app) as it should. It only happens when the file is named as "application.conf" (you can try to change it to "application2.conf" and it will work). However, I have solved simply declaring it explicitly with the following line within the application.conf (although it should be the default value…):

application.global=Global

So now you can start the app with any of the three options you put (even with simply "start"). I have updated the repo, and the Activator Template will be ready soon.

Hi!

I have inserted

application.global=Global

into the application.conf, and everything is work fine.

Thank you for your quick answer!