Skip to content

Docs: Add APP_SECRET generation step for the demo application #21220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 7.3
Choose a base branch
from

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 ?

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.

3 participants