Your SlideShare is downloading. ×
0
Starting with Play on Openshift
Starting with Play on Openshift
Starting with Play on Openshift
Starting with Play on Openshift
Starting with Play on Openshift
Starting with Play on Openshift
Starting with Play on Openshift
Starting with Play on Openshift
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Starting with Play on Openshift

1,283

Published on

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

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,283
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
51
Comments
2
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Play! Framework + OpenShift quickstart Deploying scala web application to Openshift cloud in 5 minutes 1вторник, 29 января 13 г.
  • 2. Before you begin • Download and install Play! Framework • Install Git • Create account on Openshift • Install OpenShift CLI 2вторник, 29 января 13 г.
  • 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. 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. 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. 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. Done! Check you web app URL 7вторник, 29 января 13 г.
  • 8. Links • http://www.playframework.org/ • https://openshift.redhat.com/ • https://github.com/opensas/play2-openshift- quickstart/ 8вторник, 29 января 13 г.

×