The config_ignore module is used
to ignore configuration for the itk_pretix
module.
This project ships with a docker environment that includes a local pretix setup for use during development.
Our pretix service must be able to call a webhook
controller in our Drupal
(phpfpm) service and this requires a little setting in
settings.local.php:
$settings['itk_pretix']['drupal_base_url'] = 'http://deltag.local.itkdev.dk:8080';Sign in to pretix:
Go to Local pretix and
sign in with username admin@localhost and password admin.
task pretix:database-loadtask compose -- pull
task compose-up
task pretix:database-dumptask drush -- config:set itk_pretix.pretixconfig pretix_url 'http://pretix.deltag.local.itkdev.dk/'
task drush -- config:set itk_pretix.pretixconfig organizer_slug 'hoeringsportal'
task drush -- config:set itk_pretix.pretixconfig api_token 'v84pb9f19gv5gkn2d8vbxoih6egx2v00hpbcwzwzqoqqixt22locej5rffmou78e'
task drush -- config:set itk_pretix.pretixconfig template_event_slugs 'template-series'Go to http://deltag.local.itkdev.dk/admin/config/itk_pretix/pretixconfig for more pretix configuration.
curl --header 'Authorization: Token v84pb9f19gv5gkn2d8vbxoih6egx2v00hpbcwzwzqoqqixt22locej5rffmou78e' \
http://pretix.deltag.local.itkdev.dk/api/v1/organizers/# Drupal setup
docker compose exec phpfpm /app/vendor/bin/drush --root=/app/web --yes deploy
docker compose exec phpfpm /app/vendor/bin/drush --root=/app/web --yes locale:update
docker compose exec phpfpm vendor/bin/drush --yes --uri=http://deltag.local.itkdev.dk/ config:set itk_pretix.pretixconfig pretix_url 'http://pretix.deltag.local.itkdev.dk/'
docker compose exec phpfpm vendor/bin/drush --yes --uri=http://deltag.local.itkdev.dk/ config:set itk_pretix.pretixconfig organizer_slug 'hoeringsportal'
docker compose exec phpfpm vendor/bin/drush --yes --uri=http://deltag.local.itkdev.dk/ config:set itk_pretix.pretixconfig api_token 'v84pb9f19gv5gkn2d8vbxoih6egx2v00hpbcwzwzqoqqixt22locej5rffmou78e'
docker compose exec phpfpm vendor/bin/drush --yes --uri=http://deltag.local.itkdev.dk/ config:set itk_pretix.pretixconfig template_event_slugs 'template-series'
docker compose exec phpfpm /app/vendor/bin/drush --root=/app/web --yes cache:rebuild# Pretix setup
docker compose exec pretix python /pretix/src/manage.py migrate
docker compose exec pretix python /pretix/src/manage.py compress
docker compose exec pretix python /pretix/src/manage.py collectstatic --no-input
# Dump the database
mysqldump --host=0.0.0.0 --port=$(docker compose port pretix_database 3306 | awk -F: '{ print $2 }') --user=pretix --password=pretix pretix | gzip > .docker/pretix/dumps/pretix.sql.gz