问题描述
我正在使用Typesafe Activator 1.2.10.我从模板play-scala用激活器ui创建了一个新项目.
I am using Typesafe Activator 1.2.10. I created a new project with activator ui from template play-scala.
当我单击开始"时,播放以产品模式运行.我想在开发模式下运行它.如何使用激活器ui来做到这一点?
When I click Start, play is running in prod mode. I would like to run it in dev mode. How to do that with activator ui?
在取消单击开始"后,请参阅以下日志.
See below logs after un click Start.
PS:我知道如何通过带有激活器的命令从命令行在开发模式下运行该项目:激活器运行
PS: I know how to run this project in dev mode from command line with activator with command : activator run
我的问题可能是这里报告的内容 https://github.com/typesafehub/activator/issues /601
My issue is probably what has been reported here https://github.com/typesafehub/activator/issues/601
推荐答案
插件和play-scala种子存在问题:
There are issues with plugins and play-scala seed:
只需将project/plugins.sbt更改为此
just change project/plugins.sbt to this
// Comment to get more information during initialization
logLevel := Level.Warn
// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
// Cloudbees
resolvers += "Sonatype OSS Snasphots" at "http://oss.sonatype.org/content/repositories/snapshots"
// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.0-RC2")
addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.0.0-RC2")
addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0-RC3")
并重新编译项目.应用程序正在开发模式下运行,刷新时自动重新编译正在工作!
and recompile project. App is running in dev mode and auto-recompile on refresh is working!
https://github.com/typesafehub/activator/issues/601# issuecomment-72938901
这篇关于如何使用Typesafe Activator UI在开发人员模式下运行播放项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!