【playframework】2.0.4いれた
この前いれたのは1系だったけど今回は2系いれた
【playframework】入門編 windows7 - 気ままなつぶやき
今回はmac
インストール
$brew install play
アプリ作成してみる
$ play new sampleApp _ _ _ __ | | __ _ _ _| | | '_ \| |/ _' | || |_| | __/|_|\____|\__ (_) |_| |__/ play! 2.0.4, http://www.playframework.org The new application will be created in /Users/okuda_junko/Documents/workspace/eclipse/sampleApp What is the application name? > sampleApp Which template do you want to use for this new application? 1 - Create a simple Scala application 2 - Create a simple Java application 3 - Create an empty project > 1 OK, application sampleApp is created. Have fun!
なんかscalaかjavaか選択できるようになってるのね。
前からこんなだっけ・・(○゚ε゚○)ワスレター
$cd sampleApp $ play eclipsify [info] Loading project definition from /Users/okuda_junko/Documents/workspace/eclipse/sampleApp/project [info] Set current project to sampleApp (in build file:/Users/okuda_junko/Documents/workspace/eclipse/sampleApp/) [info] About to create Eclipse project files for your project(s). [info] Successfully created Eclipse project files for project(s): [info] sampleApp
playのコンソール経由で実行してみる
$ play [info] Loading project definition from /Users/okuda_junko/Documents/workspace/eclipse/sampleApp/project [info] Set current project to sampleApp (in build file:/Users/okuda_junko/Documents/workspace/eclipse/sampleApp/) _ _ _ __ | | __ _ _ _| | | '_ \| |/ _' | || |_| | __/|_|\____|\__ (_) |_| |__/ play! 2.0.4, http://www.playframework.org > Type "help play" or "license" for more information. > Type "exit" or use Ctrl+D to leave this console. [sampleApp] $ [sampleApp] $ run --- (Running the application from SBT, auto-reloading is enabled) --- [info] play - Listening for HTTP on port 9000... (Server started, use Ctrl+D to stop and go back to the console...)
起動した
以前とあんまり変わらないのね。
てかこのバージョン古い(;゚ロ゚)ハッ
|ョ・ω・`) でもバージョンで方法が微妙に違うっぽいからこのメモは置いておこ