You will need cargo and the whole rust toolchain and docker with dokcer compose extension. You may also need a build-essential like package for your distribution if you do not already have it.
- Create .env file
The server depends on the existence of an .env file. Your .env file should look like this:
DATABASE_URL="postgres://postgres:secret_pass@localhost/postgres"
SECRET="YOUR_SECRET"
- Build and run
docker compose up --detach
cargo run
- Download and install toolchain for prefered architecture, i.e.
armv7-unknown-linux-gnueabihf
. - Install
vhome.service
systemd service on target system. - Modify all variables in the
deploy
script. - Run deploy script.
After changing tables or relationships in the database, the structures generated for the ORM must be refreshed. This can be done with the sea-orm-cli tool using the command:
sea generate entity -o src/database