;; 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. {:biff/base-url #profile {:prod #join ["https://" #biff/env DOMAIN] :default "http://localhost:8080"} :biff/host #profile {:dev "0.0.0.0" :default "0.0.0.0"} :biff/port 8080 :example/db-url #profile {:prod "jdbc:sqlite:/storage/site.db" :default "jdbc:sqlite:storage/site.db"} :biff.beholder/enabled #profile {:dev true :default false} :biff.middleware/secure #profile {:dev false :default true} :biff.middleware/cookie-secret #biff/secret COOKIE_SECRET :biff/jwt-secret #biff/secret JWT_SECRET :biff.refresh/enabled #profile {:dev true :default false} :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]"] :biff.system-properties/user.timezone "UTC" :biff.system-properties/clojure.tools.logging.factory "clojure.tools.logging.impl/slf4j-factory" :biff.tasks/server #biff/env score-the-pigs.fly.dev :biff.tasks/main-ns com.score-the-pigs :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" :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. :biff.tasks/watch-dirs ["src" "dev" "resources" "test"] ;; 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 }