Play! Framework +                           OpenShift quickstart                 Deploying scala web application to Opensh...
Before you begin                    • Download and install Play! Framework                    • Install Git               ...
Create new app            $ play new SimpleBlog            What is the application name?            > SimpleBlog          ...
Create OpenShift app            Connect CLI to OpenShift            $ rhc setup            Create ne DIY cartrige         ...
Add to Git            Add code to OpenShift repo            $ git init            $ git remote add origin ssh://your_uuid@...
Add OpenShift config        $ git remote add quickstart -m master git://github.com/opensas/        play2-openshift-quicksta...
Done!                           Check you web app URL                                     7вторник, 29 января 13 г.
Links                    • http://www.playframework.org/                    • https://openshift.redhat.com/               ...
Upcoming SlideShare
Loading in …5
×

Starting with Play on Openshift

1,800 views

Published on

How to create empty Play framework application and deploy it to OpenShift cloud platform using git and rhc CLI

Published in: Entertainment & Humor
2 Comments
2 Likes
Statistics
Notes
  • Same question. #following!!
    how do you upgrade to play 2.2.X??
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Nice. But, how would you go about updating an existing rhc app that's on Play 2.1 to Play 2.2?
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
1,800
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
52
Comments
2
Likes
2
Embeds 0
No embeds

No notes for slide

Starting with Play on Openshift

  1. 1. Play! Framework + OpenShift quickstart Deploying scala web application to Openshift cloud in 5 minutes 1вторник, 29 января 13 г.
  2. 2. Before you begin • Download and install Play! Framework • Install Git • Create account on Openshift • Install OpenShift CLI 2вторник, 29 января 13 г.
  3. 3. Create new app $ play new SimpleBlog What is the application name? > SimpleBlog Which template do you want to use for this new application? 1 - Create a simple Scala application 2 - Create a simple Java application 3 - Create an empty project > 1 $ cd SimpleBlog 3вторник, 29 января 13 г.
  4. 4. Create OpenShift app Connect CLI to OpenShift $ rhc setup Create ne DIY cartrige $ rhc app create SimpleBlog -t diy-0.1 --no-git -l <email> Output of last command will contain Git URL like this Git URL = ssh://your_uuid@SimpleBlog-yourdomain.rhcloud.com/~/git/SimpleBlog.git/ Remember it 4вторник, 29 января 13 г.
  5. 5. Add to Git Add code to OpenShift repo $ git init $ git remote add origin ssh://your_uuid@SimpleBlog- yourdomain.rhcloud.com/~/git/DimpleBlog.git/ $ git pull -s recursive -X theirs origin master $ git add . $ git commit -m "initial deploy" 5вторник, 29 января 13 г.
  6. 6. Add OpenShift config $ git remote add quickstart -m master git://github.com/opensas/ play2-openshift-quickstart.git $ git pull -s recursive -X theirs quickstart master Then use the stage task to prepare your deployment $ play clean compile stage git add . git commit -m "commit message" git push origin 6вторник, 29 января 13 г.
  7. 7. Done! Check you web app URL 7вторник, 29 января 13 г.
  8. 8. Links • http://www.playframework.org/ • https://openshift.redhat.com/ • https://github.com/opensas/play2-openshift- quickstart/ 8вторник, 29 января 13 г.

×