Skip to content

Deploying to the server

Mark Fullmer edited this page Oct 25, 2021 · 2 revisions

Deployment steps

  1. If a new database with imported texts needs to be imported: mysql -u <user> -p <database> < YYYYMMDD-deploy.sql
  2. If changes are to be introduced on the frontend, locally run a new build of the frontend via ng serve --prod and then deploy the files generated in dist/crow to the production server.

Post-deployment checklist

PHP version matching

The PHP version used during local development and on the production server should match. There are a few ways to ensure this is the case.

If using lando, set the PHP version in the .lando.yml file:

services:
  my-service:
    type: php:7.2
    via: apache

Second, set the PHP config version in the composer.json file.

    "config": {
        "platform": {
            "php": "7.2.26"
        }
    },

Finally, make sure that the production server also uses the same version.