Skip to content
Sample minimal ring/compojure app that you can start fro and deploy to cloudbees
Clojure
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
resources/public
src/sample_clojure_cloudbees
test/sample_clojure_cloudbees/test
.gitignore
README.md
project.clj

README.md

sample-clojure-cloudbees

A good starting point for lein and ring powered clojure apps - for deployment to cloudbees.

You can also use https://github.com/CloudBees-community/clojure-clickstart for one that uses Jenkins to build/test.

If you don't have a CloudBees account - get one one:

Sign in with GitHub
Sign in with Google

Usage

lein do clean, deps, ring server    

This will start the app - and open a browser. Hack away, press refresh, no need to restart unless you udpate dependencies etc. ('do' means do a list of things in lein terms)

To deploy to cloudbees:

1) Open project.clj - give your project a cloudbees-app-id 2) Then go to https://grandcentral.cloudbees.com/user/keys and get your credentials - punch them in (see project.clj).

From then on:

lein cloudbees deploy
lein cloudbees list-apps
lein cloudbees

Be happy.

The cloudbees plugin (http://clojars.org/lein-cloudbees) is used here for deployment (no runtime dependency, of course).

License

Copyright (C) 2011 Michael Neale

Whatever.

Something went wrong with that request. Please try again.