C11.2.Play! Framework 2

我的教學測試專案 Play 2.0, https://bitbucket.org/kuochaoyi/play2-p20111231/src

Welcome to Play 2.0!

These commands are available:
classpath                  Display the project classpath.
clean                      Clean all generated files.
compile                    Compile the current application.
console                    Launch the interactive Scala console (use :quit to exit).
dependencies               Display the dependencies summary.
dist                       Construct standalone application package.
exit                       Exit the console.
h2-browser                 Launch the H2 Web browser.
license                    Display licensing informations.
package                    Package your application as a JAR.
play-version               Display the Play version.
publish                    Publish your application in a remote repository.
publish-local              Publish your application in the local repository.
reload                     Reload the current application build file.
run <port>                 Run the current application in DEV mode.
test                       Run Junit tests and/or Specs from the command line
eclipsify                  generate eclipse project file
start <port>               Start the current application in another JVM in PROD mode.
update                     Update application dependencies.

Type `help` to get the standard sbt help.

[p0204] $ h2-browser
[info] Updating {file:/Volumes/SSD6402/MyBitBucket/play2app/p0204/}p0204...
[info] Done updating.                                                                  
Web Console server running at (only local connections)
TCP server running at tcp:// (only local connections)
PG server running at pg:// (only local connections)
[p0204] $ 

Official Site



Play defaults to port 9000
$ play run 8080
$ play start 8080
➜  p2011122101  play 
[info] Loading global plugins from /Users/kuochaoyi/.sbt/plugins
[info] Loading project definition from /Volumes/SSD6402/MyBitBucket/play2app/p2011122101/project
[info] Set current project to p2011122101 (in build file:/Volumes/SSD6402/MyBitBucket/play2app/p2011122101/)
          _                 _ 
 _ __ | | __ _      _| |
| '_ \| |/ _' | || |_|
|  __/|_|\____|\__(_)
|_|            |__/ 
play! 2.0-RC1-SNAPSHOT, http://www.playframework.org

> Type "help" or "license" for more information.
> Type "exit" or use Ctrl+D to leave this console.

[p2011122101] $ start 
[p2011122101] $ start 20000

(Starting server. Type Ctrl+D to exit logs, the server will remain in background)