Git Product home page Git Product logo

Comments (4)

bigclumsyoaf avatar bigclumsyoaf commented on August 15, 2024 2

@asolntsev ok thanks, I guess that makes sense. But i don’t think it’s obvious that precompile is the recommended way to deploy. Maybe it would be worth reviewing the deployment documentation to be a bit more explicit with that.

I’ve managed to get my app to precompile and run on the server. I still need to tidy things up, and have a few performance issues, but it looks like I’m nearly there.

Thanks for your help!

from play1.

asolntsev avatar asolntsev commented on August 15, 2024

@bigclumsyoaf When you start Play application in production mode, it's assumed the application should be precompiled by this moment. Did you run play precompile before play start?

from play1.

bigclumsyoaf avatar bigclumsyoaf commented on August 15, 2024

@asolntsev No, is that mandatory now? It’s not something we ever did on play1.0, 1.2 or 1.3 apps we have in production.

The code seems to handle precompile and compile under start differently, so assumed that both were acceptable.

I did try running precompile while trying to get it to work, but received a different problem. I will need to check the specific error, but from memory it was a problem with commons io FileUtils, but that might have been a conflict with something under the app.

from play1.

asolntsev avatar asolntsev commented on August 15, 2024

@bigclumsyoaf I don't remember if it's officially mandatory, but at least it seems reasonable to me.

Starting in "Production mode" means that everything should be ready for start: the code is compiled etc.

We even did a special move to eliminate from production build eclipse compiler and other dependencies needed only for compilation. It eliminates the risk that hacker manages to generate HTML file with a hacky groovy code in temporary folder and forces Play to compile it (in fact, we had such a vulnerability in production).

from play1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.