LoginSignup
5
6

More than 5 years have passed since last update.

Playプロジェクトをapache上にデプロイするための備忘録

Last updated at Posted at 2016-02-06

自分用のメモ
誰かの参考になれば

GitHub上にあったやつを使う

play2-war-pluginを使った

version Tomcat ver
Servlet 3.0 Tomcat 7

playでの記述

APP_HOME/project/plugins.sbt
resolvers += Resolver.url(
  "bintray-sbt-plugin-releases",
   url("http://dl.bintray.com/content/sbt/sbt-plugin-releases"))(
       Resolver.ivyStylePatterns)

addSbtPlugin("com.github.play2war" % "play2-war-plugin" % "1.3-beta3")
build.sbt
...
import ... // other imports
import com.github.play2war.plugin._
...

version := "1.0-SNAPSHOT"
...
Play2WarPlugin.play2WarSettings

Play2WarKeys.servletVersion := "3.0"

war作成

activator war

APP_HOME/target配下にwarファイルができる

これをApp名にリネーム

あとは通常のwarのデプロイと一緒

おまけ

アプリケーションルートの設定をしておいた方がいいと思います

conf/application.conf
...
application.context=/my-app/
...
5
6
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
5
6