Giter VIP home page Giter VIP logo

play2-clickstart's Introduction

Play 2 Hello World clickstart

This clickstart sets up a SBT build service, repository and a basic Play 2 application.

Launch this clickstart and glory could be yours too ! Use it as a building block if you like.

You can launch this on Cloudbees via a clickstart automatically, or follow the instructions below.

Deploying manually:

To build and deploy this on CloudBees, follow those steps:

Create application:

bees app:create MYAPP_ID

Create a new software project in Jenkins, changing the following:

  • Add this git repository (or yours, with this code) on Jenkins

  • Change JDK to:

      Oracle JDK 1.7 (Latest)
    
  • Add an "Execute Shell" build step with:

      java -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=384M -jar /opt/sbt/sbt-launch-0.11.3-2.jar -Dsbt.log.noformat=true dist
    
  • Also add a post-build step "Deploy to CloudBees" with those parameters:

      Applications: First Match
      Application Id: MYAPP_ID
      Filename Pattern: dist/*.zip
    

Then finally update your application from your own computer:

bees config:set -a MYAPP_ID -Rjava_version=1.7 containerType=play2 proxyBuffering=false
bees app:restart MYAPP_ID

To build this locally:

You will need play2 installed, or sbt (this jenkins build currently uses SBT).

In the play2-clickstart directory, open a command line, and then type:

play dist

Then deploy it on cloudbees typing:

bees app:deploy -a MYAPP_ID -t play2 -Rjava_version=1.7 dist/*.zip proxyBuffering=false

To run this locally:

You will need a locally running MySQL server for this instance.

Use the following command, and then browse to localhost:9000

play run

play2-clickstart's People

Contributors

michaelneale avatar benjaminsavoy avatar swashbuck1r avatar imeredith avatar cyrille-leclerc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.