-
Notifications
You must be signed in to change notification settings - Fork 12
Packaged project does not serve static index.html #16
Comments
may you try to run And may you try to add |
I was trying to use index.html as my source, not index.scala.html. When I changed my routes file to include
and updated the code instead, it worked. However, now I having problems serving the processed javascript. The
and is giving 404 errors trying to serve the files from /ui. Given that everything in the jar is under /public, that does not surprise me. Do I need a setting in build.sbt so that the assets are stored under ui instead of public? I am using play 2.5.2. projects/build.sbt:
|
Sorry if its too late, I was in vacation when you replied and I saw this again when I was check my home page, for serving index (static page) may I know what inside the For me I just redirect the user to the index page without saying to serve
Routes:
|
That renders and returns index.scala.html. That works for me with this
|
So you want to serve index.scala.html ? and where is that file located? and if you want to use the index of scala, why you want this plugin? could you disable it and try again? |
I don't need to serve scala, but I was only able to serve a static page in I need to plugin to run gulp to run browserify when I serve jsx/js. Troy On Thu, Aug 25, 2016 at 6:06 PM, Al-Mothafar Al-Hasan <
|
I have a project which is similar to the react sample. When I run in activator, it works. I have index.html in
ui/app
. When I ranactivator universal:packageBin
to create a distribution, the resulting distribution did not serve index.html.When I added
to build.sbt, it would serve index.html, but as an attachment, so the browser asked me where I wanted to save the file, rather than displaying it.
This appears to be related to the switch from dev mode to prod mode.
When I moved index.html to app/views/index.scala.html, added
to routes and implemented the method to return
ok(views.html.index.render())
, it I could load index.html when I accessed server:9000/, but it could not then load the javascript from the ui directory.Are there simple directions for making the plugin work in production mode?
The text was updated successfully, but these errors were encountered: