0
我想知道activator dist
是否足以部署Play应用? activator clean compile
也应该运行吗?我已阅读Deploying documentation,但我不清楚。为了部署Play应用程序,“activator dist”足够吗?
我想知道activator dist
是否足以部署Play应用? activator clean compile
也应该运行吗?我已阅读Deploying documentation,但我不清楚。为了部署Play应用程序,“activator dist”足够吗?
正在运行dist
已编译该项目,这是足够的是。以前不需要清洁。如果您想先运行测试:sbt test dist
。
dist
的输出为target/universal/project-name.zip
,只是将其内容解压到生产服务器。您可能想为生产服务器使用不同的配置文件,因此您将像这样运行应用程序:./bin/project-name -Dconfig.file=conf/production.conf
。
如果你想建立一个胖罐子,而所有必要的依赖关系看看sbt assembly。
我更喜欢在部署到生产之前使用clean。有时奇怪的东西与依赖关系发生:) – pedrorijo91