0
stars
0
forks
source link
Demo
Continuous Integration
Installation
- make sure you have installed a JDK (6 or 7) correctly
- open a console and enter
javac -version
, that should print your java version, for example javac 1.6.0_37
- you may have to add your Java bin folder to the PATH environment variable and open a new console window
- checkout the project
- go to the project folder with the console
- check:
dir
(or ls
on UNIX) should show you the folders app, conf, project and some more
- then enter the command
run
or run.bat
, this may take a while the first time because it downloads a lot of JARs, you may even think that it hangs
- if this is the first time you run this script, check your firewall if it's blocking the download of libraries
- you can view the application in the browser after it printed something like
play - Listening for HTTP on port 9000...
- open http://localhost:9000 in your browser
- use Ctrl + D or Ctrl + C to stop the application
Programming
- Play Documentation: http://www.playframework.org/documentation/2.1.0/Home
- Generate IDE Project Files
- run unit tests in batch mode:
sbt test
- don't use CSS directly, use less in the folder app/assets/stylesheets
- don't use JavaScript directly, use CoffeeScript in the folder app/assets/javascripts
- Debugging
- recover from hard build errors:
sbt clean
- using initial data for the projects: see ProjectFixturesPlugin.java
- using a specific configuration:
sbt -Dconfig.file=conf/backenddevdocear2.conf compile ~run
Packaging
sbt dist