@@ -37,7 +37,7 @@ Once updated your dependencies, you will find a brand new server bin inside the
37
37
This is a PHP file. This means that the way of starting this server is by, just,
38
38
executing it.
39
39
40
- ``` php
40
+ ``` console
41
41
php vendor/bin/server 0.0.0.0:8100
42
42
```
43
43
@@ -49,7 +49,7 @@ configure how the server starts and what adapters use.
49
49
overridden with option ` --adapter ` and the value must be a valid class
50
50
namespace of an instance of ` KernelAdapter `
51
51
52
- ``` bash
52
+ ``` console
53
53
php vendor/bin/server 0.0.0.0:8100 --adapter=symfony4
54
54
php vendor/bin/server 0.0.0.0:8100 --adapter=My\Own\Adapter
55
55
```
@@ -60,7 +60,7 @@ php vendor/bin/server 0.0.0.0:8100 --adapter=My\Own\Adapter
60
60
` Symfony4 ` and ` autoload ` . Can be overridden with the option ` --bootstrap ` and
61
61
the value must be a valid path of a file, starting from the project root.
62
62
63
- ``` bash
63
+ ``` console
64
64
php vendor/bin/server 0.0.0.0:8100 --bootstrap=symfony4
65
65
php vendor/bin/server 0.0.0.0:8100 --bootstrap=autoload
66
66
php vendor/bin/server 0.0.0.0:8100 --bootstrap=config/myfile.php
@@ -69,22 +69,22 @@ php vendor/bin/server 0.0.0.0:8100 --bootstrap=config/myfile.php
69
69
- Environment: Kernel environment. By default ` prod ` , but turns ` dev ` if the
70
70
option ` --dev ` is found.
71
71
72
- ``` bash
72
+ ``` console
73
73
php vendor/bin/server 0.0.0.0:8100 --dev
74
74
```
75
75
76
76
- Debug: Kernel will start with this option is enabled. By default false,
77
77
enabled if the option ` --debug ` is found. Makes sense on development
78
78
environment, but is not exclusive.
79
79
80
- ``` bash
80
+ ``` console
81
81
php vendor/bin/server 0.0.0.0:8100 --dev --debug
82
82
```
83
83
84
84
- Silent: No information nor any kind of report will be printed in the standard
85
85
output. By default disabled, but can be enabled with ` --silent ` .
86
86
87
- ``` bash
87
+ ``` console
88
88
php vendor/bin/server 0.0.0.0:8100 --silent
89
89
```
90
90
@@ -103,7 +103,7 @@ your kernel uses the AsyncKernel implementation.
103
103
To turn on the asynchronous feature, just add this flag
104
104
105
105
106
- ``` bash
106
+ ``` console
107
107
php vendor/bin/server 0.0.0.0:8100 --non-blocking
108
108
```
109
109
@@ -116,7 +116,7 @@ You can override the static folder with the command option `--static-folder`.
116
116
All files inside this defined folder will be served statically in a non-blocking
117
117
way
118
118
119
- ``` bash
119
+ ``` console
120
120
php vendor/bin/server 0.0.0.0:8100 --static-folder=public
121
121
```
122
122
@@ -125,6 +125,6 @@ useful when working with the adapter value and want to disable the default
125
125
value, for example, for an API.
126
126
127
127
128
- ``` bash
128
+ ``` console
129
129
php vendor/bin/server 0.0.0.0:8100 --no-static-folder
130
- ```
130
+ ```
0 commit comments