score-the-pigs/resources/config.edn

46 lines
2.2 KiB
Clojure
Raw Normal View History

2025-03-11 23:42:37 +00:00
;; See https://github.com/juxt/aero and https://biffweb.com/docs/api/utilities/#use-aero-config.
;; #biff/env and #biff/secret will load values from the environment and from config.env.
2025-03-14 19:29:40 +00:00
{:biff/base-url #profile {:prod #join ["https://" #biff/env DOMAIN]
:default "http://localhost:8080"}
2025-03-14 19:30:00 +00:00
:biff/host #profile {:dev "0.0.0.0"
2025-03-14 22:11:39 +00:00
:default "0.0.0.0"}
2025-03-14 19:30:00 +00:00
:biff/port 8080
2025-03-11 23:42:37 +00:00
2025-03-14 22:11:39 +00:00
:example/db-url #profile {:prod "jdbc:sqlite:/storage/site.db"
:default "jdbc:sqlite:storage/site.db"}
2025-03-11 23:42:37 +00:00
2025-03-14 19:30:00 +00:00
:biff.beholder/enabled #profile {:dev true
:default false}
:biff.middleware/secure #profile {:dev false
:default true}
2025-03-11 23:42:37 +00:00
:biff.middleware/cookie-secret #biff/secret COOKIE_SECRET
2025-03-14 19:30:00 +00:00
:biff/jwt-secret #biff/secret JWT_SECRET
:biff.refresh/enabled #profile {:dev true
:default false}
2025-03-11 23:42:37 +00:00
:biff.nrepl/port #or [#biff/env NREPL_PORT "7888"]
:biff.nrepl/args ["--port" #ref [:biff.nrepl/port]
"--middleware" "[cider.nrepl/cider-middleware,refactor-nrepl.middleware/wrap-refactor]"]
2025-03-14 19:30:00 +00:00
:biff.system-properties/user.timezone "UTC"
2025-03-11 23:42:37 +00:00
:biff.system-properties/clojure.tools.logging.factory "clojure.tools.logging.impl/slf4j-factory"
2025-03-14 22:11:39 +00:00
:biff.tasks/server #biff/env score-the-pigs.fly.dev
:biff.tasks/main-ns com.score-the-pigs
2025-03-14 19:30:00 +00:00
:biff.tasks/on-soft-deploy "\"(com.biffweb.my-project/on-save @com.biffweb.my-project/system)\""
:biff.tasks/generate-assets-fn com.biffweb.my-project/generate-assets!
:biff.tasks/css-output "target/resources/public/css/main.css"
2025-03-11 23:42:37 +00:00
:biff.tasks/deploy-untracked-files [#ref [:biff.tasks/css-output]
"config.env"]
;; `clj -M:dev prod-dev` will run the soft-deploy task whenever files in these directories are changed.
2025-03-14 19:30:00 +00:00
:biff.tasks/watch-dirs ["src" "dev" "resources" "test"]
2025-03-11 23:42:37 +00:00
;; Uncomment this line if you're on Windows/don't have rsync and your local branch is
;; called main instead of master:
;; :biff.tasks/deploy-cmd ["git" "push" "prod" "main:master"]
:biff.tasks/deploy-cmd ["git" "push" "prod" "master"]
;; Uncomment this line if you have any ssh-related problems:
;; :biff.tasks/skip-ssh-agent true
}