Run, Start and Ports



Run = DEV 模式




Start = PROD 模式



root@kuochaoyi:/opt/Play20/p/j1# play start
[info] Loading project definition from /opt/Play20/p/j1/project
[info] Set current project to j1 (in build file:/opt/Play20/p/j1/)

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

Play server process ID is 16169
[info] play - Application started (Prod)
[info] play - Listening for HTTP on port 9000...
root@kuochaoyi:/opt/Play20/p/j1# kill -9 16169



改變預設 Port



root@water:/opt/Play20/p/j1# play
[info] Loading project definition from /opt/Play20/p/j1/project
[info] Set current project to j1 (in build file:/opt/Play20/p/j1/)
       _            _
 _ __ | | __ _ _  _| |
| '_ \| |/ _' | || |_|
|  __/|_|\____|\__ (_)
|_|            |__/

play! 2.0-RC3-SNAPSHOT, http://www.playframework.org

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

[j1] $ run
<arg>    <args>
[j1] $ run 9900

--- (Running the application from SBT, auto-reloading is enabled) ---

[info] play - Listening for HTTP on port 9900...

(Server started, use Ctrl+D to stop and go back to the console...)

[info] play - Application started (Dev)


[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 
<port>
[p2011122101] $ start 20000

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




Comments