2017-03-15 72 views

回答

2

正在运行dist已编译该项目,这是足够的是。以前不需要清洁。如果您想先运行测试:sbt test dist

dist的输出为target/universal/project-name.zip,只是将其内容解压到生产服务器。您可能想为生产服务器使用不同的配置文件,因此您将像这样运行应用程序:./bin/project-name -Dconfig.file=conf/production.conf

如果你想建立一个胖罐子,而所有必要的依赖关系看看sbt assembly

+1

我更喜欢在部署到生产之前使用clean。有时奇怪的东西与依赖关系发生:) – pedrorijo91