Browse Source

2022.14.08.2 snapshot.

master
Craig Oates 2 years ago
parent
commit
6d45ff9c63
  1. 4
      app.lisp
  2. 4
      conf/hot-line-prod.conf
  3. 11
      src/config.lisp

4
app.lisp

@ -38,4 +38,6 @@
(let ((datafly:*trace-sql* t))
(funcall app env)))))
*web*)
:debug t)
:debug (if (hot-line.config:productionp)
nil
t)) ; Added as part of clack-error-middleware.

4
conf/hot-line-prod.conf

@ -1,4 +1,4 @@
upstream hot-line {
upstream hunchentoot {
server 127.0.0.1:3002;
}
@ -24,7 +24,7 @@ server {
# if the requested file does not exist then
# proxy to the hunchentoot server cluster
if (!-f $request_filename) {
proxy_pass http://hot-line;
proxy_pass http://hunchentoot;
}
}
}

11
src/config.lisp

@ -27,7 +27,11 @@
'())
(defconfig |production|
'())
`(:debug nil
:databases
((:maindb :sqlite3 :database-name ,(merge-pathnames #P"db/hot-line.db"
*application-root*)))))
(defconfig |test|
'())
@ -43,3 +47,8 @@
(defun productionp ()
(string= (appenv) "production"))
;;; Use this to change the environment between "development" and
;;; "production". This change is mostly to specifiy which database the
;;; system will use.
(setf (osicat:environment-variable "APP_ENV") "development")

Loading…
Cancel
Save