Brownsmith Dynamics
ServicesProductsCoursesToolsCompanyBlogsWhy UsPricingFAQsQuizContact
  1. Home
  2. From Repository To Production
  3. Git And Repository Preparation
  1. Home
  2. Courses
  3. Self Hosting Open Source Applications
  4. From Repository To Production
  5. Git And Repository Preparation

Brownsmith Dynamics

AI systems, workflow software, websites, automation, and search visibility for small teams from Dehradun.

ContactProductsServicesPricingCoursesWhy UsFAQsToolsBlogsQuiz

Sitemap

HomeSoftware that works with the business.ProductsConfigurable product bases for real operations.CoursesTechnical decisions for founders who do not need to become engineers.All ServicesAI, software, automation, web, data, visibility, and modernisation services.ContactBook an initial workflow and build scoping call.
Expand to See the Full SitemapCollapse the Full Sitemap

Core Pages

CompanyBrownsmith Dynamics company and registered business details.Why UsModern systems should reduce friction, not add another process.PricingA transparent framework for software-development pricing.Brownsmith Dynamics MCPPublic documentation for a read-only MCP currently in private testing.FAQsFrequently Asked QuestionsToolsOpen-source tools for practical software teams.Tools DataOpen tools data and a shareable shortlist builder.QuizDecide whether to self-build, prototype, or get help.

Services

AI ImplementationAI That Fits the Work.AI-Native SystemsMake Existing Systems AI-Accessible.Web DevelopmentWebsites That Explain the Business.Business AutomationRemove the Work That Keeps Repeating.Custom SoftwareSoftware Around the Business.Ghost DevelopmentYour Product. Built Behind the Scenes.Legacy ModernisationModernise Without Unnecessary Replacement.Data and ReportingMake Business Data Easier to Use.SEO, AEO and GEOMake the Offer Easier to Understand.Performance MarketingPerformance Marketing Guided by Real Data.Technical WritingClear Writing for Complex Work.

Founder Learning

Course BundleCourses, modules, exercises, and knowledge checks for technical decisions.Building an AI-Native BusinessA business-level course on structured knowledge, models, agents, tools, MCP, permissions, legacy systems, and an incremental AI adoption roadmap. No advanced programming background is required.MVP Building for FoundersTurn an idea into a product that can be built, tested, and evaluated without allowing the first version to become the entire company.Product and Interface DesignDesign an MVP that users can understand, navigate, and trust before spending time polishing its visual details.Frontend for FoundersUnderstand the part of the product users see, the decisions that shape it, and the warning signs of a fragile implementation.Backend for FoundersUnderstand how an application processes rules, protects actions, communicates with services, and responds when something fails.Databases for FoundersLearn how product data is structured, protected, changed, exported, and recovered.Infrastructure and DeploymentUnderstand where software runs, how it reaches users, what it costs, and who is responsible when it stops working.AI-Assisted Product BuildingUse conversational AI, vibe-coding platforms, coding agents, skills, and agent systems as parts of a controlled product-development workflow.Testing and Quality AssuranceTest interfaces, APIs, workflows, permissions, limits, and failure cases before users discover the problems.Security, Ownership, and OperationsProtect the product, retain control of critical accounts, and prepare the system to be maintained after launch.Self-Hosting Open-Source ApplicationsMove from a maintained open-source repository to a secure, containerised VPS deployment that can be operated, updated, backed up, and recovered.GlossaryTechnical terms explained for product and business decisions.

AI-Native Systems

AI-Native Business SystemsBrownsmith Dynamics documents, structures, and connects existing business systems so approved AI products and automated workflows can interact with them more reliably.Brownsmith Dynamics MCPExplore the privately tested read-only MCP, resources, and provider guidance.Public AI DocumentationAuthoritative public business information for AI systems.Structured Business DataMachine-readable public services, products, courses, and contacts.llms.txtMachine-friendly website and public documentation map.

Product Pages

Fonte UIA developing product concept designed to become the source interface for day-to-day work, turning communication from email, WhatsApp, and Microsoft Teams into trackable work on one Kanban board.Private Agent WorkspaceA familiar private chat where every person can have a personal assistant, every group can have a separate shared helper, and specialists can support planning, research, writing, support, and software work.Web Conversation EngineA Website That Answers Like the Business.Private Model InfrastructureControl the Stack Before Scaling the Use Cases.Workflow Automation HubMove Repeat Work Out of Manual Loops.Data Intelligence WorkbenchTurn Messy Business Data Into Decisions.Growth Intelligence PlatformMake Organic Growth Less Random.Workforce Intelligence SuiteGive HR a System for the Work Between Forms.Contract & Compliance DeskMake Document Review Faster and More Traceable.Industrial Operations PlatformGive Operations Teams Earlier Signals.Healthcare Operations WorkbenchReduce Administrative Drag Across Care Teams.Learning Operations PlatformGive Educators More Time for Students.Security Operations ConsoleHelp Analysts Find the Events That Matter.Property Intelligence SuiteBring Property Data, Leases, and Tenant Work Into One View.Commerce Intelligence PlatformMake the Catalogue Easier to Run and Easier to Buy From.Prompt ComposerReview, Format, and Reuse Prompts Where You Write.

Contact and Discovery

EmailEmail Brownsmith Dynamics about a practical build.XML SitemapMachine-readable route map for crawlers.

Core Pages

CompanyBrownsmith Dynamics company and registered business details.HomeSoftware that works with the business.Why UsModern systems should reduce friction, not add another process.PricingA transparent framework for software-development pricing.ProductsConfigurable product bases for real operations.CoursesTechnical decisions for founders who do not need to become engineers.Brownsmith Dynamics MCPPublic documentation for a read-only MCP currently in private testing.FAQsFrequently Asked QuestionsToolsOpen-source tools for practical software teams.Tools DataOpen tools data and a shareable shortlist builder.QuizDecide whether to self-build, prototype, or get help.

Services

All ServicesAI, software, automation, web, data, visibility, and modernisation services.AI ImplementationAI That Fits the Work.AI-Native SystemsMake Existing Systems AI-Accessible.Web DevelopmentWebsites That Explain the Business.Business AutomationRemove the Work That Keeps Repeating.Custom SoftwareSoftware Around the Business.Ghost DevelopmentYour Product. Built Behind the Scenes.Legacy ModernisationModernise Without Unnecessary Replacement.Data and ReportingMake Business Data Easier to Use.SEO, AEO and GEOMake the Offer Easier to Understand.Performance MarketingPerformance Marketing Guided by Real Data.Technical WritingClear Writing for Complex Work.

Founder Learning

Course BundleCourses, modules, exercises, and knowledge checks for technical decisions.Building an AI-Native BusinessA business-level course on structured knowledge, models, agents, tools, MCP, permissions, legacy systems, and an incremental AI adoption roadmap. No advanced programming background is required.MVP Building for FoundersTurn an idea into a product that can be built, tested, and evaluated without allowing the first version to become the entire company.Product and Interface DesignDesign an MVP that users can understand, navigate, and trust before spending time polishing its visual details.Frontend for FoundersUnderstand the part of the product users see, the decisions that shape it, and the warning signs of a fragile implementation.Backend for FoundersUnderstand how an application processes rules, protects actions, communicates with services, and responds when something fails.Databases for FoundersLearn how product data is structured, protected, changed, exported, and recovered.Infrastructure and DeploymentUnderstand where software runs, how it reaches users, what it costs, and who is responsible when it stops working.AI-Assisted Product BuildingUse conversational AI, vibe-coding platforms, coding agents, skills, and agent systems as parts of a controlled product-development workflow.Testing and Quality AssuranceTest interfaces, APIs, workflows, permissions, limits, and failure cases before users discover the problems.Security, Ownership, and OperationsProtect the product, retain control of critical accounts, and prepare the system to be maintained after launch.Self-Hosting Open-Source ApplicationsMove from a maintained open-source repository to a secure, containerised VPS deployment that can be operated, updated, backed up, and recovered.GlossaryTechnical terms explained for product and business decisions.

AI-Native Systems

AI-Native Business SystemsBrownsmith Dynamics documents, structures, and connects existing business systems so approved AI products and automated workflows can interact with them more reliably.Brownsmith Dynamics MCPExplore the privately tested read-only MCP, resources, and provider guidance.Public AI DocumentationAuthoritative public business information for AI systems.Structured Business DataMachine-readable public services, products, courses, and contacts.llms.txtMachine-friendly website and public documentation map.

Product Pages

Fonte UIA developing product concept designed to become the source interface for day-to-day work, turning communication from email, WhatsApp, and Microsoft Teams into trackable work on one Kanban board.Private Agent WorkspaceA familiar private chat where every person can have a personal assistant, every group can have a separate shared helper, and specialists can support planning, research, writing, support, and software work.Web Conversation EngineA Website That Answers Like the Business.Private Model InfrastructureControl the Stack Before Scaling the Use Cases.Workflow Automation HubMove Repeat Work Out of Manual Loops.Data Intelligence WorkbenchTurn Messy Business Data Into Decisions.Growth Intelligence PlatformMake Organic Growth Less Random.Workforce Intelligence SuiteGive HR a System for the Work Between Forms.Contract & Compliance DeskMake Document Review Faster and More Traceable.Industrial Operations PlatformGive Operations Teams Earlier Signals.Healthcare Operations WorkbenchReduce Administrative Drag Across Care Teams.Learning Operations PlatformGive Educators More Time for Students.Security Operations ConsoleHelp Analysts Find the Events That Matter.Property Intelligence SuiteBring Property Data, Leases, and Tenant Work Into One View.Commerce Intelligence PlatformMake the Catalogue Easier to Run and Easier to Buy From.Prompt ComposerReview, Format, and Reuse Prompts Where You Write.

Contact and Discovery

ContactBook an initial workflow and build scoping call.EmailEmail Brownsmith Dynamics about a practical build.XML SitemapMachine-readable route map for crawlers.
Course Navigation
Self-Hosting Open-Source Applications
  1. 1.Self-Hosting Economics and Responsibility
  2. 2.Preparing a VPS, DNS, Ports, and TLS
  3. 3.Git and Repository Preparation
  4. 4.Building and Inspecting a Docker Image
  5. 5.Compose, Environment Files, and Secrets
  6. 6.Deploying with Coolify or Dokploy
  7. 7.OAuth and API Key Management
  8. 8.AI APIs and MCP Services
  9. 9.Private Access with Tailscale
  10. 10.Production Deployment and Recovery Capstone
Self-Hosting Open-Source Applications
  1. 1.Self-Hosting Economics and Responsibility
  2. 2.Preparing a VPS, DNS, Ports, and TLS
  3. 3.Git and Repository Preparation
  4. 4.Building and Inspecting a Docker Image
  5. 5.Compose, Environment Files, and Secrets
  6. 6.Deploying with Coolify or Dokploy
  7. 7.OAuth and API Key Management
  8. 8.AI APIs and MCP Services
  9. 9.Private Access with Tailscale
  10. 10.Production Deployment and Recovery Capstone
  1. Courses
  2. /
  3. Self-Hosting Open-Source Applications
  4. /
  5. From Repository to Production
  6. /
  7. Git and Repository Preparation
Self-Hosting Open-Source ApplicationsFrom Repository to Production

Git and Repository Preparation

A safe self-hosted deployment starts from an understood repository, a specific release or commit, reviewed deployment files, and a documented relationship to upstream updates.

16 minute lessonUpdated July 30, 2026foundation

What You Will Be Able to Decide

  • Explain the role of git and repository preparation in a self-hosted system.
  • Apply the procedure to a real open-source deployment.
  • Recognise unsafe defaults and verify the resulting control.
  • Record enough evidence for another operator to repeat or recover the work.

Git records the history of source and configuration. In self-hosting, it also supplies the coordinates for answering what is running, what changed, and how to return to a known state.

Deploying the default branch without reading the project documentation outsources production stability to whatever changed most recently. A release tag or immutable commit gives the deployment an identity.

You do not need to become a full-time maintainer. You do need to understand the licence, supported deployment method, release cadence, data locations, upgrade notes, and security communication channel.

Technical term

Pinned revision

A named release, commit hash, or immutable image digest selected as the exact version to deploy.

It is a recipe edition with a page number, rather than an instruction to cook whatever happens to be on the author's desk today.

The Working Model

Begin with the upstream README and deployment documentation, then inspect the licence, releases, issues, and security policy. A repository can be active and still be unsuitable for the data or availability requirement.

Fork only when you expect to maintain changes. Otherwise keep a small deployment repository containing Compose files, environment examples, reverse-proxy configuration, and operational notes while consuming an upstream image at a pinned version.

Never commit live secrets. Commit an `.env.example` containing names and safe placeholders, ignore the real `.env`, and make configuration changes through reviewed commits so deployment history remains explainable.

Implementation Procedure

  1. Record the upstream repository URL, licence, latest stable release, supported database, and documented backup method.
  2. Clone or create the deployment repository and choose a branch protection and review approach proportionate to the team.
  3. Pin images to a release tag or digest rather than relying on `latest`.
  4. Commit Compose, `.env.example`, runbooks, and a change log while excluding live credentials and application data.
  5. Create a test branch for the first upgrade and record the rollback revision before merging.
git clone https://github.com/example/project-deployment.git
cd project-deployment
git switch -c deployment/initial
git add compose.yaml .env.example README.md
git commit -m "Document initial self-hosted deployment"
git log --oneline --decorate -5

Knowledge Check

Why pin a release rather than deploy the latest branch?

Controlled Practice and Fragile Practice

Controlled Practice

The deployment stays explainable, constrained, and recoverable.

  • Pin deployable artefacts to a known release.
  • Keep configuration history separate from runtime data.
  • Read release notes and test upgrades against restored data.

Fragile Practice

Convenient shortcuts create hidden exposure or an unrecoverable dependency.

  • Deploying `main` or `latest` with no record of the previous version.
  • Committing `.env`, private keys, or exported production data.
  • Forking a project without capacity to maintain the fork.

Exercise

Apply the Boundary

Select the files that normally belong in a deployment repository.

Select all answers that apply

Verification and Recovery Evidence

  • A fresh clone contains enough documentation to recreate the non-secret deployment structure.
  • The running image can be traced to a release or digest.
  • Repository secret scanning and ignore rules do not report live credentials.

Knowledge Check

When is a fork justified?

Warning Signs

  • The deployment depends on uncommitted changes on one laptop.
  • An image uses the `latest` tag and nobody records what it resolved to.
  • The only upgrade plan is to pull and hope.

Questions to Ask a Consultant

  • Can the running version be identified without logging into the server?
  • Which local changes must be carried through future upstream releases?
  • Does the repository contain configuration history without containing secrets?

Exercise

Founder Decision Note

Record the decision, its current constraint, recommended option, main reason, primary risk, and the condition that would make you revisit it.

Key takeaway

Key Takeaway

Git makes deployment explainable when versions are pinned, secrets stay out of history, and every change has a reversible reference.

Apply This Decision to Your Product.

Understanding a technical concept is useful. Applying it still depends on your product, users, budget, data, and operating constraints.

Brownsmith Dynamics can review an MVP scope, technical proposal, architecture, deployment plan, AI-assisted workflow, or existing application.

For corrections, questions, and suggested improvements to this lesson, contact us directly.

Book a Technical Consultation Ask a Question or Suggest an Improvement
Previous LessonPreparing a VPS, DNS, Ports, and TLSNext Lesson Building and Inspecting a Docker Image

Related Lessons

  • Preparing a VPS, DNS, Ports, and TLS
  • Building and Inspecting a Docker Image

On This Lesson

  1. Pinned Revision
  2. The Working Model
  3. Implementation Procedure
  4. Knowledge Check
  5. Controlled Practice and Fragile Practice
  6. Apply the Boundary
  7. Verification and Recovery Evidence
  8. Knowledge Check
  9. Warning Signs
  10. Questions to Ask
  11. Key Takeaway