Comments (4)
@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.
@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.
@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.
@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)
- about play 1.7.1 log problem HOT 2
- Play 1.7 WS problem (header too large) HOT 2
- PlayStatusPlugin method computeApplicationStatus throws ClassCastException HOT 1
- "play auto-test" can return a exit code zero when the tests don't run HOT 2
- please add log4j2 config to a sample project HOT 1
- enable "Discussions" for play1 github project HOT 2
- Play Framework 1.x with OpenID Connect HOT 4
- Removed support for python 2.x in github action
- IO / play precompile broken HOT 5
- dependency resolution breaks precompiled
- hibernate_sequence doesnt exists. HOT 1
- Play build-module failes¨s
- Play build-module fails HOT 1
- The imp module was removed from python 3.12 HOT 5
- Support for Java 21 HOT 4
- Regression: "play auto-test --timeout" broke in python3 upgrade
- Python AttributeError: module 'time' has no attribute 'clock' HOT 1
- Upgrade to Hibernate 5.6 -> 6.4 HOT 2
- Play Framework Module Configuration Issue: Detection of Plugins Absent in addModule Method
- Improved documentation for transaction handling in jobs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play1.