Skip to content

City-of-Pori/pori-events

Repository files navigation

tapahtumat.pori.fi

The tapahtumat.pori.fi calendar contains all the events and activities near Pori.

Local development

Setup

  1. Read the Lando docs and install the latest Lando.
  2. Check out the repo: git clone git@github.com:City-of-Pori/pori-events.git tapahtumat && cd tapahtumat/drupal.
  3. Start the site: lando start.
  4. Sync the local database with selected environment: lando syncdb <env> (stage by default, prod). Connect to the required VPN first.
  5. Update the local database & enable development components: lando update.
  6. Go to https://tapahtumat.lndo.site/.

Services

Tools

Full commands/tools overview is available by running lando. Custom tools:

  • lando bower, lando gulp, lando npm - frontend tooling,
  • lando index - sets up the elasticsearch indexes,
  • lando update - updates the local db & enables dev components,
  • lando migrate - imports migrate_source_event migration group,
  • lando xdebug-on - enables xdebug,
  • lando xdebug-off - disables xdebug.

PHP 8.x Compatibility Check (dev only)

Check custom modules folder + themes folder: lando ssh -c "phpcs --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --extensions=php,inc,module,install --colors --report-full=report_80_custom.txt --runtime-set testVersion 8.0 -ps web/themes -ps web/modules/custom"

Check contrib modules folder: lando ssh -c "phpcs --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --extensions=php,inc,module,install --colors --report-full=report_80_contrib.txt --runtime-set testVersion 8.0 -ps web/modules/contrib"

Old readme.