Skip to content

Conversation

malsuke
Copy link

@malsuke malsuke commented Jul 20, 2025

When following the current documentation to set up the Symfony Demo application, an error occurs on startup because the APP_SECRET variable is not set in the .env file.

スクリーンショット 2025-07-20 14 39 46

To fix this and allow the server to start, the following command must be run manually:

php bin/console secrets:set APP_SECRET

To resolve this issue, I propose adding the command to set APP_SECRET to the documentation:

symfony new my_project_directory --demo
+ cd my_project_directory
+ php bin/console secrets:set APP_SECRET

How to Reproduce

  1. Run the following commands as instructed by the documentation:
symfony new my_project_directory --demo
cd my_project_directory
symfony server:start
  1. Open http://localhost:8000 (or the server's address) in a browser.

An error page is displayed, indicating that secret is missing.

@94noni
Copy link
Contributor

94noni commented Jul 20, 2025

Isnt this fixed with recent symfony/demo#1579 ?

@javiereguiluz
Copy link
Member

@94noni is right.

@malsuke I'm sorry about this issue. This should no longer happen when installing the Symfony Demo app after the recent 2.8.0 version release (https://github.com/symfony/demo/releases/tag/v2.8.0).

So, let's close this ons as fixed. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants