Skip to content

Server Environments

Environment Map

Development → Test 1 → Test 2 → Staging → Production
(Dan codes)   (validate) (validate) (Nisarg)  (live)
localhost:1818  exp       :1820     :1717    scottrecycling.com
branch: jan    branch: jan  staging-2  staging-2  production

Server Details

Development — localhost:1818

  • Purpose: Dan's development and initial testing
  • Database: test1
  • Branch: jan on ScottRecycling/SR-Odoo
  • OS: Ubuntu 24.04, Odoo 17 CE, Python 3.12, PostgreSQL 14
  • Config: /etc/odoo17.conf
  • Service: odoo17.service
  • Custom addons: /home/dan/SR-Odoo/
  • Restart: sudo systemctl restart odoo17.service
  • Logs: sudo journalctl -u odoo17.service --since "5 minutes ago" --no-pager
  • Upgrade: /opt/odoo17/odoo17-venv/bin/python3 /opt/odoo17/odoo17/odoo-bin -c /etc/odoo17.conf -d test1 -u MODULE --stop-after-init

Test 1 — exp.scottrecycling.com

  • Purpose: First testing environment, validates Dan's code
  • Branch: jan
  • Deploy from Dan: ssh dan@exp.scottrecycling.com 'git -C /opt/odoo/custom_addons/Dan-Odoo pull origin jan'

Test 2 — :1820

  • Purpose: Second testing, Nisarg validates before staging
  • Branch: staging-2

Staging — :1717

  • Purpose: Pre-production. Nisarg's final testing before going live.
  • Branch: staging-2
  • Rule: Nothing goes to production without passing here first.

Production — scottrecycling.com

  • Purpose: Live system
  • Branch: production
  • Rule: Only deploy after staging (1717) passes. Dan approves.

Git Remotes (on Dan's machine)

ScottRecycling    git@github.com:ScottRecycling/SR-Odoo.git     (Dan pushes here)
ScottRecycling101 https://github.com/ScottRecycling101/SR-Odoo.git (Nisarg's fork — read only from Dan's machine)

Key Branches

Branch Who writes Purpose
jan Dan Development. All new features start here.
staging-2 Nisarg Deployment pipeline. Nisarg cherry-picks from jan and adds his own changes.
production Nisarg Production releases. Only from staging after testing passes.

Deployment Flow

Dan finishes code on jan
Dan pushes to ScottRecycling/jan
Dan deploys to exp (Test 1) for smoke test
Dan writes release file in Sr-docs
Daily meeting: Dan hands off to Nisarg
Nisarg reviews release file
Nisarg cherry-picks/merges from jan into staging-2
Nisarg deploys to Test 2 (1820)
  → Runs test checklist
Nisarg deploys to Staging (1717)
  → Runs test checklist
  → Full regression testing
Dan approves for production
Nisarg deploys to Production
  → Monitors for issues