diff --git a/CHANGELOG.md b/CHANGELOG.md index 57f156d..68ba4a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to project will be documented in this file. +## [2.3.1](https://github.com/roadiz/skeleton/compare/v2.3.0...v2.3.1) - 2024-05-16 + +### Bug Fixes + +- Missing redis-messenger package at composer create-project. Missing JWT_PASSPHRASE default value. - ([c27aebc](https://github.com/roadiz/skeleton/commit/c27aebc8d60ef5df21e5ba0fdc16b8a520d7a1bb)) - Ambroise Maupate + ## [2.3.0](https://github.com/roadiz/skeleton/compare/v2.2.1...v2.3.0) - 2024-05-15 ### Bug Fixes diff --git a/composer.json b/composer.json index e052728..2034b70 100644 --- a/composer.json +++ b/composer.json @@ -12,6 +12,7 @@ "nelmio/cors-bundle": "^2.4", "roadiz/cms-pack": "^2.0.1", "sentry/sentry-symfony": "^4.13", + "symfony/redis-messenger": "6.4.*", "symfony/flex": "*", "symfony/requirements-checker": "^2.0" }, diff --git a/composer.json.dist b/composer.json.dist index e052728..2034b70 100644 --- a/composer.json.dist +++ b/composer.json.dist @@ -12,6 +12,7 @@ "nelmio/cors-bundle": "^2.4", "roadiz/cms-pack": "^2.0.1", "sentry/sentry-symfony": "^4.13", + "symfony/redis-messenger": "6.4.*", "symfony/flex": "*", "symfony/requirements-checker": "^2.0" }, diff --git a/config/packages/lexik_jwt_authentication.yaml b/config/packages/lexik_jwt_authentication.yaml index edfb69d..47d833b 100644 --- a/config/packages/lexik_jwt_authentication.yaml +++ b/config/packages/lexik_jwt_authentication.yaml @@ -1,3 +1,6 @@ +parameters: + env(JWT_PASSPHRASE): '!ChangeMe!' + lexik_jwt_authentication: secret_key: '%env(resolve:JWT_SECRET_KEY)%' public_key: '%env(resolve:JWT_PUBLIC_KEY)%' diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index e530679..a59a4d4 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -1,6 +1,6 @@ # Production template # Replace “my-registry/roadiz_skeleton” with your own project registry URL -name: skeleton +#name: skeleton services: db: image: mysql:8.0 diff --git a/docker-compose.restore.yml b/docker-compose.restore.yml index 6702625..4088353 100644 --- a/docker-compose.restore.yml +++ b/docker-compose.restore.yml @@ -1,7 +1,7 @@ # Restoring from a backup into development environment # Separate file to avoid running the restore services when using docker-compose up # docker compose -f docker-compose.restore.yml --env-file .env.local run --rm restore_files -name: skeleton +#name: skeleton services: restore_files: # Keep the same hostname for all Restic services diff --git a/docker-compose.symfony.yml b/docker-compose.symfony.yml index 07efbbb..5cfc41e 100644 --- a/docker-compose.symfony.yml +++ b/docker-compose.symfony.yml @@ -1,7 +1,7 @@ # # Only use this docker compose template if you prefer using symfony server:start # -name: skeleton +#name: skeleton services: db: build: diff --git a/docker-compose.yml b/docker-compose.yml index b796f4b..3e307bc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -name: skeleton +#name: skeleton services: db: build: @@ -21,8 +21,8 @@ services: pma: image: phpmyadmin/phpmyadmin -# ports: -# - ${PUBLIC_PMA_PORT}:80/tcp + ports: + - ${PUBLIC_PMA_PORT}:80/tcp environment: MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} MYSQL_DATABASE: ${MYSQL_DATABASE} @@ -77,8 +77,8 @@ services: nginx: image: roadiz/nginx-alpine:latest -# ports: -# - ${PUBLIC_APP_PORT}:80/tcp + ports: + - ${PUBLIC_APP_PORT}:80/tcp depends_on: - app # Nginx does not resolve `app` hostname correctly diff --git a/migrations/Version20221206171114.php b/migrations/Version20221206171114.php deleted file mode 100644 index 3d1f291..0000000 --- a/migrations/Version20221206171114.php +++ /dev/null @@ -1,36 +0,0 @@ -skipIf($schema->hasTable('messenger_messages'), 'messenger_messages table already exists.'); - $this->addSql('CREATE TABLE messenger_messages (id BIGINT AUTO_INCREMENT NOT NULL, body LONGTEXT NOT NULL, headers LONGTEXT NOT NULL, queue_name VARCHAR(190) NOT NULL, created_at DATETIME NOT NULL, available_at DATETIME NOT NULL, delivered_at DATETIME DEFAULT NULL, INDEX IDX_75EA56E0FB7336F0 (queue_name), INDEX IDX_75EA56E0E3BD61CE (available_at), INDEX IDX_75EA56E016BA31DB (delivered_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); - } - - public function down(Schema $schema): void - { - $this->skipIf(!$schema->hasTable('messenger_messages'), 'messenger_messages table does not exist.'); - $this->addSql('DROP TABLE messenger_messages'); - } - - public function isTransactional(): bool - { - return false; - } -}