Skip to content

Commit 3e474c5

Browse files
committed
Prefer to use composer command instead of yaml example
1 parent cb28573 commit 3e474c5

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

docs/topics/setup.md

+9-15
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,19 @@ Installing a monitoring tool (like [Sentry](https://sentry.io)) is recommended.
1818

1919
### Using the server
2020

21-
Using the server in your Symfony project is as easy as adding the proper endpoint to your `composer.json`:
21+
To enable recipes defined in your server, run the following command in your project:
2222

23-
{
24-
...
25-
"symfony": {
26-
"endpoint": "https://your.domain.com"
27-
}
28-
}
23+
```sh
24+
composer config extra.symfony.endpoint https://your.domain.com
25+
```
2926

3027
#### Running the server locally
3128

3229
Running the server locally is possible by using symfony's server command: `php bin/console server:start` (oder `server:run` for a temporary instance).
33-
Make sure to allow connections over http to composer (if using localhost) by adding this to the project's `composer.json`:
34-
35-
{
36-
...
37-
"config": {
38-
"secure-http": false
39-
}
40-
}
30+
Make sure to allow connections over http to composer (if using localhost) running the following command:
31+
32+
```sh
33+
composer config secure-http false
34+
```
4135

4236
*It is not recommended to run the server locally. The best setup would be a private server behind a firewall.*

0 commit comments

Comments
 (0)