/heroku-buildpack-sbcl

Buildpack for SBCL on Heroku.

Primary LanguageShellGNU Affero General Public License v3.0AGPL-3.0

heroku-buildpack-sbcl

Buildpack for SBCL on Heroku.

Environment

The Operating System

Requirements / Dependencies

Usage

Write a file named build.lisp in the root of your source tree to build the system.

(log-title "Building system ...")
(ql:quickload :any-thing-you-want)
(log-footer "")

(Optional) Write a file named build.env in the root of your source tree to define environment variables.

export SBCL_VERSION="sbcl-1.3.17-x86-64-linux"

Write a file named Procfile in the root of your source tree to start the server.

web: sbcl --script web-launcher.lisp

Write a file named web-launcher.lisp in the root of your source tree for Procfile to execute.

(require :asdf)
(asdf:disable-output-translations)
(defvar *port* (parse-integer (asdf::getenv "PORT")))
(load "root/quicklisp/setup.lisp")
(require :web-server)
(web-server:start :port *port*)

Examples

References