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 г.