Why do design and production modes result in different web pages?

I tried the latest Play Framework 2.3.7 on Mac OS Yosemite then I followed the tutorial to create a web page

$ activator new my-first-app play-scala
$ cd my-first-app
$ activator run

      

It generated a nice page with colors and lots of content and a title like this:

enter image description here

Then I type Ctrl+D

to close this application and use production mode:

$ activator start

      

It only generates a plain text web with only a header like this:

enter image description here

What should I do to show all the other things in operation?

+3


source to share


1 answer


This was expected. The Play welcome page helper includes a stack of things, including links to all locally served documentation and stylesheets / images / etc, which are (rightfully) disabled in prod mode. So, in prod mode, because everything that is needed for the welcome page is disabled, the welcome page does an unencrypted one liner instead, as you can see.



+6


source







All Articles