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

assests directory #305

Open
sirhallt opened this issue Mar 10, 2016 · 4 comments
Open

assests directory #305

sirhallt opened this issue Mar 10, 2016 · 4 comments

Comments

@sirhallt
Copy link

When creating a WAR and deploying to Tomcat 7 non of the files in project/public folder are deployed. Typically these are mapped to /assests... in normal Play! execution. How should they be handled using WAR ?

@dlecan
Copy link
Member

dlecan commented Mar 11, 2016

Please, can you give:

  • Play version
  • Play2War version

non of the files in project/public folder are deployed.

What do you mean ? Are they embedded in the WAR file ?

@sirhallt
Copy link
Author

Play version :Play 2.3.8
Play2War version: 1.3-beta3

I have a route defined as:
GET /assets/*file controllers.Assets.at(path="/public", file)

Any where in my views/*.scala.html where I use the annotation @routes.Assets.at("") those in normal re-route to my public folder based on the route, but in the WAR they are not present.

@dlecan
Copy link
Member

dlecan commented Mar 18, 2016

Can you describe:

  • where are your assets in your project
  • where do you want to see them in the WAR file

Thank you

@sirhallt
Copy link
Author

in my project the assets are under the public folder in my project. In typical play I can access these at the /assets URL using the above described route. The assets contains things like my JS, CSS, and image files.

Thank you

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

2 participants