2014年4月5日 星期六

scala play framework 使用方式





要建立專案,輸入

$ play new myFirstApp



進入 play 的 shell (用來輸入指令的)
$ cd myFirstApp
$ play shell


如果要啟用 dev server 在 play shell 輸入

run

或是

$ play run


進入 play 的 console (用來輸入程式碼的)

$ play debug console

如果要使用 stand-alone server

$ play start

你也可以把你的程式打包起來,複製到其他地方執行

$ play dist

他會產生一個 zip 檔,包含所有執行時必要的 jar。



其他可能有用指令

因為 neo4j 只支援 openjdk-7 ,所以用下面指令檢查 java version。不然 play start 未必能正常運作。

$javac -version
$java -version


1 則留言:

  1. This welding machine appears to be light-weight, making it pretty easy to carry from one place to another. Its reliability is great, and it will interest you to know that the Titanium Unlimited 200 is one welding machine that ought to use|you must use} with ease. If may be} approved, then your refund will be processed, and a credit will mechanically be utilized to your bank card or original method of payment, within sure amount|a particular amount|a certain quantity} of days. titanium rings We don't retailer bank card details nor have access to your bank card data. Another cause of this problem might be an incorrect gauge or size of cable.

    回覆刪除