Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 1.33 KB

README.md

File metadata and controls

52 lines (31 loc) · 1.33 KB

Biff example project

This is the example/template project for Biff.

Commands

./task dev

Starts the app locally. After running, wait for the System started message. Connect your editor to nrepl port 7888. Whenever you save a file, Biff will:

  • Evaluate any changed Clojure files
  • Regenerate static HTML and CSS files
  • Run tests

./task clean

Deletes generated files.

./task deploy

rsyncs config files to the server, deploys code via git push, and restarts the app process on the server (via git push hook). You must set up a server first. See Production.

./task soft-deploy

rsyncs config and code to the server, then evals any changed files and regenerates HTML and CSS files. Does not refresh or restart.

./task refresh

Reloads code and restarts the system via clojure.tools.namespace.repl/refresh (on the server).

./task restart

Restarts the app process via systemctl restart app (on the server).

./task logs

Tail the server's application logs.

./task prod-repl

Open an SSH tunnel so you can connect to the server via nREPL.

./task prod-dev

Runs ./task logs and ./task prod-repl. In addition, whenever you save a file, it will be copied to the server (via rsync) and eval'd, after which HTML and CSS will be regenerated.