sbt stage : not a valid command

2019-08-12 20:11发布

问题:

I am trying to follow the tutorial for scala and spray with this great template : http://typesafe.com/activator/template/activator-akka-spray

Then I follow instruction for Heroku deployment : https://devcenter.heroku.com/articles/getting-started-with-scala

I encounter a problem when running the command "sbt clean compile stage" in order to prepare a deployment on Heroku. Here is the error message :

[info] Loading project definition from /.../activator-akka-spray/project
[info] Set current project to activator-akka-spray (in build file:/.../activator-akka-spray/)
[error] Not a valid command: stage (similar: last-grep, set, last)
[error] Expected '/'
[error] Expected ':'
[error] Not a valid key: stage (similar: state, target, tags)
[error] stage
[error] ^

Has anyone encountered a similar error ?

Thanks in advance for any help.

回答1:

Add the StartScriptPlugin from Typesafe in the build.sbt, as mentioned in the documentation.



标签: scala heroku sbt