Scala

Install (for Mac OS X)

play framework

$ brew install typesafe-activator

Play 2.4 Hands on

すごいわかりやすい

感想

  • "activator new play2-hands-on" が完了した時点で.gitignoreが自動的に作成されているので、この時点GitHubのでリポジトリ作成しちゃってよさそう。
  • build.sbtを編集するときはケツカンマに注意だ!間違えるとこうなるぞ!
[error] [/Users/karia/source/karia/scala-play-sample/build.sbt]:16: ')' expected but string literal found.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? q
  • 初回のactivator runは数十分単位で時間かかる(猛然とダウンロード祭りが始まる)
  • HTTPのリクエストが来てからScalaのcompileをはじめる、ヤバい
[info] Compiling 7 Scala sources and 1 Java source to /Users/karia/source/karia/scala-play-sample/target/scala-2.11/classes...
[info] 'compiler-interface' not yet compiled for Scala 2.11.6. Compiling...
[info]   Compilation completed in 14.1 s
Warning: node.js detection failed, sbt will use the Rhino based Trireme JavaScript engine instead to run JavaScript assets compilation, which in some cases may be orders of magnitude slower than using node.js.
[info] - play.api.Play - Application started (Dev)
  • 2015/10/22時点でのバージョン
You’re using Play 2.4.3

リロード   新規 下位ページ作成 編集 凍結 差分 添付 コピー 名前変更   ホーム 一覧 検索 最終更新 バックアップ   ヘルプ   最終更新のRSS