`activator dist` 是否足以部署 Play 应用程序?
Is `activator dist` sufficient in order to deploy a Play app?
我想知道 activator dist
是否足以部署 Play 应用程序? activator clean compile
也应该是 运行 吗?我看过Deploying documentation,但我不是很清楚
运行 dist
已经编译了项目,足够了。之前不需要清洁。如果您想 运行 先进行测试 运行:sbt test dist
。
dist
的输出在target/universal/project-name.zip
,只需将其内容解压到生产服务器即可。您可能想为您的生产服务器使用不同的配置文件,因此您将 运行 应用程序如下所示:./bin/project-name -Dconfig.file=conf/production.conf
.
如果你想构建一个带有所有必要依赖项的 fat jar,请查看 sbt assembly。
我想知道 activator dist
是否足以部署 Play 应用程序? activator clean compile
也应该是 运行 吗?我看过Deploying documentation,但我不是很清楚
运行 dist
已经编译了项目,足够了。之前不需要清洁。如果您想 运行 先进行测试 运行:sbt test dist
。
dist
的输出在target/universal/project-name.zip
,只需将其内容解压到生产服务器即可。您可能想为您的生产服务器使用不同的配置文件,因此您将 运行 应用程序如下所示:./bin/project-name -Dconfig.file=conf/production.conf
.
如果你想构建一个带有所有必要依赖项的 fat jar,请查看 sbt assembly。