GithubHelp home page GithubHelp logo

vhazrati / liftoncloudbeestemplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from d6y/liftoncloudbeestemplate

1.0 1.0 0.0 1.71 MB

Shell liftweb application set up to deploy to cloudbees. Uses SBT for builds.

liftoncloudbeestemplate's Introduction

Lift on CloudBees Template

LoCB is based on the Lift 2.3 archive from http://liftweb.net/download. 
This build is for ::

    Scala 2.9
    Lift 2.4-M3
    SBT 0.10.1

It has several SBT plugins added for convenience.

     sbt-eclipsify 
     sbt-cloudbees-plugin

Getting started:

Before firing up SBT update the project name in build.sbt

If you are going to use Run@CloudBees you'll want to update the following: 

         ~/.bees/bees.config is populated with your key & secret. 
            bees.api.key=API_KEY
            bees.api.secret=SECRET  

        ./src/main/resources/props/production.default.props
          //Sendgrid conf
          [email protected]

          # Sendgrid.com configuration:
          [email protected]
          mail.password=password

Sendgrid (or similar) must be used if deploying to cloudbees as the bees don't allow sending mail from localhost.

If you don't want to use the cloudbees plugin at the very least update the web.xml
to use the Lift filter rather than the CloudBees filter.  If you want to remove the 
Cloud bees plugin entirely see below.  

JNDI Conf

        ./src/main/scala/bootstrap/liftweb/Boot.scala

              DefaultConnectionIdentifier.jndiName = "jdbc/JNDI_NAME"

        ./src/main/webapp/WEB-INF/cloudbees-web.xml

              <resource name="jdbc/JNDI_NAME" auth="Container" type="javax.sql.DataSource">

        ./src/main/webapp/WEB-INF/cloudbees-web.xml
              
              <param name="url" value="jdbc:cloudbees://JNDI_NAME" />

        ./src/main/webapp/WEB-INF/web.xml
            
              <res-ref-name>jdbc/JNDI_NAME</res-ref-name>
         
Running & deploying 
 
1. sbt 
2. > reload
3. > update
4. > eclipse 
5. > jetty
6. > bees-deploy


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.