configuration-deployment

Update Madoc TS runtime configuration and Docker multi-stage builds.

57|15|Updated Nov 28, 2018
One-click install
npx skills add https://github.com/digirati-co-uk/madoc-platform --skill configuration-deployment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: configuration-deployment
Source: https://github.com/digirati-co-uk/madoc-platform/tree/main/.agents/skills/configuration-deployment
Command: npx skills add https://github.com/digirati-co-uk/madoc-platform --skill configuration-deployment

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing Madoc TS runtime configuration, path conventions, and Docker build/runtime steps becomes cumbersome when environment variables, file paths, or Docker stages need to change.

Core Features & Use Cases

  • Path Management: Guides updates to services/madoc-ts/src/paths.ts and related constants.
  • Docker Build Guidance: Provides step‑by‑step advice for modifying the multi‑stage Dockerfile.
  • Runtime Config Editing: Assists with adjustments to config.json and ecosystem.config.cjs.
  • Use Case: When introducing a new asset directory, the skill helps align environment variables, path definitions, and Docker copy steps to ensure the asset is included in the built image.

Quick Start

Use the configuration-deployment skill to modify the Dockerfile to include a new build stage and update path constants for the new asset directory.

Frequently Asked Questions about configuration-deployment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update TypeScript path constants when adding a new asset directory to Madoc?

To update TypeScript path constants for Madoc, modify the `paths.ts` file within `services/madoc-ts/src` to align environment variables and path definitions with the new asset directory structure. This ensures correct asset resolution during runtime.

How do I modify a multi-stage Dockerfile to include new assets in Madoc TS?

Modifying a multi-stage Dockerfile for Madoc TS requires adding new build stages and updating Docker copy steps to include the new asset directory. This aligns the Docker setup with updated path definitions to ensure the asset is in the built image.

What is the process for adjusting runtime configuration in Madoc TS?

Adjusting Madoc TS runtime configuration involves editing `config.json` and `ecosystem.config.cjs` to update runtime defaults and environment variables. This ensures the application behaves correctly according to the new deployment needs.

Do I need knowledge of JSON configuration schema to deploy Madoc TS?

Yes, knowledge of JSON configuration schema is required to deploy Madoc TS correctly. You must understand the schema to ensure proper asset inclusion and validate runtime defaults when updating `config.json` during development or CI pipelines.

When should I update environment variables and Docker setup for Madoc TS?

You should update environment variables and Docker setup when introducing a new asset directory, changing file paths, or modifying deployment needs. This aligns the multi-stage Docker build and TypeScript path constants with the new environment.