Reputation: 9621
Has anyone tried to deploy to cloudbees a play 2 application using this latest instructions?
I've done all the steps but when I tried to run this:
play cloudbees-deploy
I receive:
[error] Not a valid command: cloudbees-deploy
[error] Not a valid project ID: cloudbees-deploy
[error] Not a valid configuration: cloudbees-deploy
[error] Not a valid key: cloudbees-deploy (similar: cloudbees-application-id)
Upvotes: 0
Views: 563
Reputation: 9621
The issue was that I put .bees
directory in a wrong path. %HOME%
directory on a Windows machine can be found typying: echo %USERPROFILE%
in cmd so this is the correct path where .bees
folder should be put.
Upvotes: 0
Reputation: 19468
Yes - there needs to be ~/.bees/bees.config (I adjusted the docs to make that clearer).
Also the import must be there, as mentioned. It is probably preferable to not hard code the keys.
I verified this with play 2.0.4 just today (2.0.1 isn't yet working until a version is pushed that supports the older version of SBT)
Upvotes: 1
Reputation: 9621
In the end I solved that by putting import cloudbees.Plugin._
in Build.scala but further errors complaining about missing username
and so on appeared.
Seems that I had to put this In Build.scala:
val main = PlayProject(appName, appVersion, appDependencies, mainLang = JAVA)
.settings(cloudBeesSettings :_*)
.settings(
CloudBees.applicationId := Some("my_app")
).settings(
CloudBees.username := Some("my_username")
).settings(
CloudBees.apiKey := Some("my_app_key")
).settings(
CloudBees.apiSecret := Some("my_secret")
).settings(
CloudBees.host := "https://api.cloudbees.com/api"
)
not only CloudBees.applicationId := Some("my_app")
as they say...
Upvotes: 0