adrianhurt / play-multidomain-seed

This Play 2.5 template tries to be a skeleton for a simple multidomain project (www.myweb.com and admin.myweb.com). It shows you how to use subprojects for that and how to share common code. It is also ready to use with Webjars, CoffeeScript, LESS, RequireJS, assets Gzip and assets fingerprinting. Please, check the readme file for more details.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use Global[Subproject].scala in Global.scala?

opened this issue · comments

Compilation error
not found: value GlobalWeb

Hello @garrrio,

Sorry, but I don't understand your problem. Is it an issue for the specific code of this repository? I've just tried again and I don't have any compilation error. And Global object calls correctly GlobalAdmin and GlobalWeb. Or is it a error you get in your code trying to adapt this structure? If so, I can't know the problem without your code. Try to check that every configuration file, probably you have missed some configuration, specially with files:

  • build.sbt
  • project/build.properties
  • project/plugins.sbt
  • project/Common.scala
  • app/Global.scala
  • conf/application.conf
  • modules/common/build.sbt
  • modules/common/conf/application.conf
  • modules/admin/build.sbt
  • modules/admin/app/GlobalAdmin.scala
  • modules/admin/conf/application.conf
  • modules/web/build.sbt
  • modules/web/app/GlobalAdmin.scala
  • modules/web/conf/application.conf

@adrianhurt I'm trying to adapt this structure and your answer is exactly what I need. Thank you very much.

you're welcome!