LoginSignup
7
8

More than 5 years have passed since last update.

PLAY FRAMEWORK2.2での起動時設定

Last updated at Posted at 2014-01-29

環境

  • play framework 2.2.x

方法

play frameworkでの本番用起動、開発用起動の方法です。

  • 開発モードで起動

    • アクセスごとにコンパイル
    • 必要なら再起動
    • ブラウザ上でコンパイルエラー確認
開発モード
// 普通に起動
$ play run
// ポート指定
$ play run -Dhttp.port=1234
// jvm起動指定
$ play run -J-Xms128M -J-Xmx512m -J-server
// configfile指定
$ play run -Dconfig.file=/opt/conf/prod.conf
  • 本番モードで起動
    • オプションは一緒
本番モード
$ play start

参考

play framework2.2 - additional configuration

7
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
8