△
DMCallv1
Projects
AI Models
Docs
Inventory
Rules
Backup
AI Logs
Rules
/ Deployment Procedures / Edit
Edit Rule
Rule Info
Title *
Slug
Category
Workflow
Coding
Deployment
Database
Ai Usage
Backup
General
Sort Order
Public (accessible without API key)
Content (Markdown)
Markdown Source
# Deployment Procedures ## Server Environment - **Server:** `mssql.danmarcrm.com` - **Web root:** `/var/www/mssql.danmarcrm.com/` - **PHP version:** 7.4.33 - **Database:** MongoDB 3.6.8 on `127.0.0.1:27017` - **Web server:** Apache with `.htaccess` support ## Deploying Changes 1. Make changes and test locally 2. SSH to the server (check project record for SSH details) 3. Navigate to the project directory 4. Pull or upload changed files 5. If `composer.json` changed: run `composer install --no-dev` 6. If there are DB migrations: apply them manually 7. Test the live URL ## Before Deployment Checklist - [ ] No debug output (`var_dump`, `print_r`) in code - [ ] `.env` or config files with secrets are NOT committed - [ ] `composer install` works cleanly - [ ] Tested against the production MongoDB version (3.6.8) - [ ] `.htaccess` changes tested ## PHP Compatibility Notes - Target PHP 7.4 — avoid PHP 8.x-only syntax (named arguments, match expressions, enums) - MongoDB driver version: 1.19.3 - No `readonly` properties (PHP 8.1+)
Preview
Save Changes
Cancel