Server for hosting for your Pijul projects written in Rust.
ROCKET_SECRET_KEY
contains the cookie encryption key, and must be set too.REPOSITORY_ROOT
will be used as storage root for repositories, and must be suppliedThis project uses nix to ensure dependencies are met and the development environments are reproducable. Please install Nix by following the install instructions.
When nix-shell
is in your $PATH
, execute: nix-shell
. Nix will download and
manage dependencies for you. Nix will also start a postgresql server and initiate
the database.
To start the server run: cargo run
.
This project uses sqlx
to integrate with the database. Migrations are run when
Rocket lifts off (boots its runtime).
Generating a new migrations is done by running: sqlx migrate add -r <description>
.
Note both an up and down migration are required.
pijul init
to start a repository
rm -rf .git
if tooling already created a Git repositorymv .gitignore .ignore
to ignore local only files[author]
name = "<alias or short name>"
full_name = "<full name>"
email = "<email address>"
For MacOs write it to: ~/.pijulconfig