Skip to content

atgreen/lisp-openshift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS OBSOLETE PROJECT WAS FOR THE OLD OPENSHIFT 2

lisp-openshift

This package provides everything you need to start hosting Common Lisp-based web applications on OpenShift, Red Hat's free, auto-scaling Platform as a Service (PaaS) cloud solution.

The default app template uses SBCL and a quicklisp-based dev platform with the hunchentoot web server.

lisp-openshift will auto-provision a lisp environment into your DIY OpenShift project. It does this by downloading and extracting the contents of the SBCL RPM package from the Fedora Project's Extra Packages for Enterprise Linux (EPEL) repository. This package is installed in your application's persistent data directory.

Running on OpenShift

Create an account at http://openshift.redhat.com/

Install your commant line tools as instructed at https://www.openshift.com/get-started#cli

Create a DIY application

rhc app create -a myapp -t diy-0.1

Add this upstream lisp-openshift repo

cd myapp
git remote add upstream -m master git://github.com/atgreen/lisp-openshift.git
git pull -s recursive -X theirs upstream master

Then push the repo upstream

git push

That's it! You can now have a look at your application here:

http://myapp-$namespace.rhcloud.com

To see it in action, check out http://lisp2-atgreen.rhcloud.com.

Using Quicklisp

Quicklisp is a library manager for Common Lisp. This project contains a Quicklisp repository of core packages for simple web applications, however, the upstream Quicklisp project hosts over 700 libraries.

To install more libraries into your project's repository, simply cd into the top level of your project (this directory), start sbcl with your HOME set to the current directory, and use ql:quickload as usual.

$ HOME=`pwd` sbcl
This is SBCL 1.0.51-1.fc16, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* (ql:quickload :cl-mongo)

This would add the cl-mongo package to your application.

Links

Happy hacking!

Anthony Green

About

Run sbcl-powered lisp-based web apps on Red Hat's OpenShift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •