make install_local- Install Python (via uv) and JS dependencies for local tooling (linting, type checking, etc.)make- Start the dev environment (Docker, asset watching, livereload)make assets- Build frontend assets (Tailwind CSS, JS bundles)make test- Run Python and JS test suitesmake deploy- Deploy to staging server
Requirements:
Steps:
- Run
make install_localto install dependencies. - Run
maketo bring up the dev environment. You may need to create a blank.envfile in the root directory. - Run
make assetsto compile the assets.
- Run
make testto run the tests.
make deployto deploy to the staging server.make deploy-prodto deploy to the production server.
- Totem used
dokkufor deployment. TheDockerfileis used to build the image.- Configure
dokkuto use the production Dockerfile:dokku builder:set totem selected dockerfileanddokku builder-dockerfile:set totem dockerfile-path compose/production/django/Dockerfile.
- Configure
- Download backup locally
- Take app offline:
dokku ps:stop totem scpbackup into VM home foldertar -xf backup.tgzdocker cp backup/export dokku.postgres.totemdb:/tmp/exportdocker exec -i dokku.postgres.totemdb bash
To do a full wipe and restore:
dropdb -U postgres totemdbcreatedb -U postgres -T template0 totemdbpg_restore -U postgres -d totemdb < /tmp/export- Then redeploy or
dokku ps:start totem