我們使用activator dist分配了我們的Play Framework 2.5x應用程序。 然後解壓縮在目標/通用文件夾中的可執行文件和使用運行可執行文件中的目標/通用/ APP-VER-SNAPSHOT/bin中/文件夾:Play框架部署失敗
./executablename -Dplay.crypto.secret =上「鑰匙」 Ubuntu的 ,出現以下錯誤:
Error: Could not find or load main class play.core.server.ProdServerStart
我們build.sbt文件如下:
name := """ods-web-tier"""
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayJava, PlayEbean)
scalaVersion := "2.11.7"
libraryDependencies ++= Seq(
javaJdbc,
evolutions,
"io.jsonwebtoken" % "jjwt" % "0.6.0",
"mysql" % "mysql-connector-java" % "5.1.36",
"com.mashape.unirest" % "unirest-java" % "1.4.9"
)
sources in (Compile, doc) := Seq.empty
publishArtifact in (Compile, packageDoc) := false
playEbeanModels in Compile := Seq("models.*")
什麼是我們在這裏失蹤?請幫忙