Skip to content

Commit

Permalink
build in wupub files
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Travers committed Apr 16, 2012
1 parent 4422a41 commit cebfef8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
8 changes: 8 additions & 0 deletions heroku-setup.lisp
Expand Up @@ -6,4 +6,12 @@

(ql:quickload :example)

;;; Copy wuwei public files to build (+++ move this to wuwei to hide uglies)
;;; Note: destination and initialize-application need to be in sync
(asdf:run-shell-command
(format nil "cp -r ~Apublic ~A"
(namestring (asdf:component-pathname (asdf:find-system :wuwei)))
(namestring (make-pathname :directory (append *build-dir* '("wupub"))))
))

(print ">>> Done building system")
12 changes: 10 additions & 2 deletions load.lisp
@@ -1,8 +1,16 @@
(in-package :cl-user)
;;; local load for debug.
;;; local load for debug. Replicates some of the things in buildpack/compile.lisp
;;; Note: you have to be cd'd to the toplevel app directory for things to work.

(defvar *build-dir* (pathname-directory *load-pathname*))
(defvar *build-dir* (pathname-directory (truename *load-pathname*)))

;;; Load local copies of portableaserve and wuwei, since quicklisp's are broken
;;; (You can get these from github.com/mtravers. Put them the repos directory).
(mapc #'load (directory (make-pathname :directory '(:relative "repos" :wild-inferiors)
:name :wild
:type "asd")))

(load "~/repos/wuwei/wuwei.asd") ;Use local copy of wuwei;

(load (make-pathname :directory *build-dir* :defaults "heroku-setup.lisp"))

Expand Down
9 changes: 4 additions & 5 deletions src/hello-world.lisp
Expand Up @@ -26,11 +26,10 @@
;; This has to be done at app-init rather than app-build time, to point to right directory.
(publish-directory
:prefix "/"
;;; works but ugly
:destination (namestring (truename "./public/"))
;;; does not work, run dir is different.
; :destination (namestring (make-pathname :directory (append cl-user::*build-dir* '("public"))))
))
:destination (namestring (truename "./public/")))
(wu:locate-public-directory "./wupub/")
(setf *developer-mode* (equal (ccl:getenv "DEVELOPER_MODE") "Y")))




Expand Down

0 comments on commit cebfef8

Please sign in to comment.