Wednesday, September 18, 2013

Play2 @CloudBees

Play2 @CloudBees


CloudBees & Play2 Java?


CloudBees gives you kickstart, if you are a Scala fellow. They build you app with everything included, deploy it, and you just need to get it down to your own sandbox to develop it further. 

For Play2 Java they don't offer same option. Java can be taken in use without problems, anyway, since you just need to add needed dependencies for libraries you use and start coding.

http://www.playframework.com/documentation/2.2.x/Deploying-to-CloudBees

Recipe


Register free account 

Create Play2 app at Clickstart

Test your app

Find url to repository

Clone app

Make changes


Edit templates
  • any file goes, but on scala html templates you see changes right away
  • example, file: app/views/index.scala.html, change text: "What's your name"

Push changes
  • git add -A
  • git commit -m 'change'
  • git push origin master

Test your app again

Further steps


CloudBees goes on Play2 in full Scala mode - also: example app created by ClickStart doesn't have Java option. Fine for many, but I wanted still to work with Java, and so do many of us - old legacy java coders don't convert to Scala overnight, and neither do managers.

I felt CloudBees bit confusing. There's couple of deploying options for changes, couple of ways developing your initial seed app, and it was not cleat to me what is preferred way. I tried plugins and git deployments, and managed to push post my changes to git and deploy new version of app  to CloudBees, but I didn't feel it intuitive to control deployments.

No comments: