infrastructure for tilde@Cornell
  • Python 55%
  • Shell 24.4%
  • HTML 14.3%
  • CSS 5.3%
  • Dockerfile 1%
Find a file
2026-06-17 14:50:20 +07:00
.github/workflows Remove compression from Podman image save command in validate-deployment workflow 2026-05-25 16:27:16 -04:00
cli add: cli.zsh 2026-05-25 21:49:26 -04:00
deploy Better container checking in setup.sh 2026-05-25 16:27:16 -04:00
documentation update: relocate lib_commander 2026-05-25 16:17:30 -04:00
fast-api-server init: fastapi server 2026-05-25 16:06:56 -04:00
opt/cornell-tilde add: commander manual 2026-06-17 12:51:04 +07:00
tools Add method to activate env 2026-04-29 22:19:39 -07:00
var/www/html fix: restore accidentally deleted var 2026-05-26 16:30:49 -04:00
.gitignore split deployment shell flow, hardened join account DB access permissions 2026-04-28 05:03:13 -04:00
.gitmodules update: relocate lib_commander 2026-05-25 16:17:30 -04:00
compose.yaml Refactor Containerfile and compose.yaml to improve environment variable handling and structure 2026-05-25 16:27:16 -04:00
Containerfile Proper Quoting for env 2026-05-25 16:27:16 -04:00
pyproject.toml feat: linked cornell_tilde and commander modules 2026-05-25 18:24:33 -04:00
README.md setup lightweight python environment 2026-04-30 00:14:11 -04:00
uv.lock feat: linked cornell_tilde and commander modules 2026-05-25 18:24:33 -04:00

the stuff and things of tilde@Cornell!!

  • /opt/cornell-tilde/bin - admin tools, current join flow, snazzy maintenance script
  • /opt/cornell-tilde/lib/cornell_tilde - shared python config and database helpers
  • /opt/cornell-tilde/templates - HTML templated for directory page and user default page
  • /opt/cornell-tilde/var/cornell_tilde.sqlite3 the live database (not in repo lol)
  • /var/www/html public static website files served by Apache

pls don't commit databases or user data

documentation:

local python/IDE setup:

./tools/setup-python-env.sh

Point your IDE at .venv/bin/python. The setup script adds opt/cornell-tilde/lib to that environment with a .pth file, so imports like from cornell_tilde.config import SITE_DOMAIN work without installing any pip packages. To pick a specific interpreter, run PYTHON_BIN=/usr/bin/python3 ./tools/setup-python-env.sh. For local runs, set BASE_DIR to the checkout's opt/cornell-tilde directory and WEB_ROOT to the checkout's var/www/html directory so config, templates, migrations, the SQLite database, and generated web files resolve inside the repo.

create prodgit alias

echo "alias prodgit='sudo git --git-dir=/root/cornell-tilde-prod.git --work-tree=/'" >> ~/.bashrc
source ~/.bashrc

pull changes from main branch with:

prodgit pull origin main
sudo post-deploy

pull changes from development branch with:

prodgit pull origin development
sudo post-deploy

check status of server to main with prodgit status