csrf error solve. try 2
This commit is contained in:
@@ -23,12 +23,12 @@ This repository contains a Symfony 7.3 (PHP >= 8.5.1) application for a collabor
|
||||
3. Initialize DB:
|
||||
- `php bin/console doctrine:database:create --if-not-exists`
|
||||
- `php bin/console doctrine:migrations:migrate -n`
|
||||
4. App is at http://localhost:8080
|
||||
4. App is at https://localhost:8443 (self-signed certificate)
|
||||
|
||||
## Email (Mailpit in dev, SendGrid for prod)
|
||||
- Dev: a `mailer` service (Mailpit) runs in Docker.
|
||||
- SMTP DSN in `.env`: `MAILER_DSN=smtp://mailer:1025`
|
||||
- Mailpit UI: http://localhost:8025
|
||||
- Mailpit UI: http://localhost:8025 (or mapped port 8025)
|
||||
- Send a test mail: `php bin/console app:mail:test you@example.com`
|
||||
- Staging/Prod: use SendGrid.
|
||||
- Require package (already in composer): `symfony/sendgrid-mailer`.
|
||||
@@ -85,13 +85,13 @@ Quick start (dev):
|
||||
```
|
||||
docker compose up -d
|
||||
```
|
||||
This starts `mercure` at http://localhost:8090 and the app at http://localhost:8080.
|
||||
This starts `mercure` at http://localhost:8090 and the app at https://localhost:8443.
|
||||
2. Install PHP deps inside the PHP container if you haven't yet:
|
||||
```
|
||||
docker compose exec php bash
|
||||
composer install
|
||||
```
|
||||
3. Open the Game Hub page in your browser: http://localhost:8080/game
|
||||
3. Open the Game Hub page in your browser: https://localhost:8443/game
|
||||
- The page subscribes to a demo topic and logs messages in the console.
|
||||
4. Publish a test update (in the PHP container):
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user