Sonntag, 5. Januar 2014

CloudControl - setup Scala/Play application

CloudControl (https://www.cloudcontrol.com) is a Platform as a Service solution.

You can deploy on it Java  NodeJS  PHP  Python  Ruby applications as well as a lot of Third-Party Buildpacks including Scala/Play (https://github.com/heroku/heroku-buildpack-play). Its main particularity is that it supports vertical and horizontal scaling.

The following guide explains how to deploy your application on CloudControl.



Typically you can create new application via CloudControl Console (https://www.cloudcontrol.com/console), but custom buildpacks available only through command-line interface. Command-line utilities can be installed using PIP package management system

 sudo easy_install pip  
 sudo pip install cctrl --no-use-wheel —upgrade  

Then you need to create new user or add key for existing one.

 cctrluser create  
 — or —  
 cctrluser key.add  

After that you can create new application

 cctrlapp APP_NAME create custom --buildpack https://github.com/heroku/heroku-buildpack-scala  

If you don’t have Play application yet just create it using following commands and put it under source control.

 play new APP_NAME  
 git init  
 git add .  
 git commit -m "initial commit”  

At the end you have to add new remote repository and push your application into the cloud.

 git remote add cc ssh://APP_NAME@cloudcontrolled.com/repository.git  
 cctrlapp zikolach push  
 cctrlapp zikolach deploy  

After few minutes you will have fully working Play2 application in the Cloud and may add necessary add-ons (https://www.cloudcontrol.com/add-ons) from different categories:

  • Data Storage
  • Data Processing
  • Performance & Monitoring
  • Big Data & Analytics
  • Messaging & Mobile
  • Deployment

That's all. Have fun!

Keine Kommentare:

Kommentar veröffentlichen