Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production mode is not working #95

Open
immortalcy opened this issue Jun 14, 2016 · 5 comments
Open

Production mode is not working #95

immortalcy opened this issue Jun 14, 2016 · 5 comments

Comments

@immortalcy
Copy link

immortalcy commented Jun 14, 2016

When I run the latest release of play-yeoman in production mode I found out that it doesn't work. At first I thought that this was the same issue with #90 but now I think it is not.

After cloning into a new folder here are the commands under yo-demo folder I run:
sbt
npm install
bower install
dist

When I try opening the application [http://localhost:9000/ui/] I get the following error:

Not Found
For request 'GET /ui/'

To relate this with #90 , this not an Action Not Found error but a Not Found error. If you try to open http://localhost:9000/tdemo it works normally.

If you extract and check yo-demo.yo-demo-1.0.0-assets.jar you will see that it doesn't contains any files from ui directory. Shouldn't all the files be there in their minified version, or is that a wrong .jar file I am looking at?

@apatzer
Copy link

apatzer commented Jun 17, 2016

+1

@apatzer
Copy link

apatzer commented Jun 22, 2016

@immortalcy If you copy everything from ui/dist to /public it will work in production mode. It's just a pain to need to do this each time you do a Grunt build.

@immortalcy
Copy link
Author

Thanks for the tip, but yes as you said it not optimal. By the way I was trying to compare the two latest releases (0.8.1 with latest) and there doesn't seem to be any major differences. Was just wondering where the problem could be..

@almothafar
Copy link

+1 I have same issue here
Its critical any response !?
this issue been here more than 1 month.

@almothafar
Copy link

@immortalcy
Thank you for your idea, and I made a workaround using grunt.
inside copy task at the end after styles I added:

,
      public: {
        expand: true,
        cwd: 'dist',
        src: ['**'],
        dest: '../public/'
      }

And on register build task I added at the end of queue the following line:
'copy:public'

Now its automatically do the copy, this workaround must be work until this plugin got fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants