mirror of
https://github.com/symfony/recipes.git
synced 2026-09-17 18:16:34 +03:00
Change postinstall message
This commit is contained in:
@@ -5,10 +5,7 @@
|
||||
* <fg=blue>Run</> your application:
|
||||
1. Change to the project directory
|
||||
2. Create your code repository with the <comment>git init</comment> command
|
||||
3. Execute the <comment>php -S 127.0.0.1:8000 -t public public/index.php</> command
|
||||
4. Browse to the <comment>http://localhost:8000/</> URL.
|
||||
|
||||
Quit the server with CTRL-C.
|
||||
Run <comment>composer require server --dev</> for a better web server.
|
||||
3. Run <comment>composer require server --dev</> to install the development web server,
|
||||
or configure another supported web server <comment>https://symfony.com/doc/current/setup/web_server_configuration.html</>
|
||||
|
||||
* <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc</>
|
||||
|
||||
@@ -24,10 +24,6 @@ if ($debug) {
|
||||
Debug::enable();
|
||||
}
|
||||
|
||||
if ('cli-server' === PHP_SAPI && '/index.php' !== $_SERVER['SCRIPT_NAME'] && is_file(__DIR__.$_SERVER['SCRIPT_NAME'])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? $_ENV['TRUSTED_PROXIES'] ?? false) {
|
||||
Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST);
|
||||
}
|
||||
|
||||
@@ -5,10 +5,7 @@
|
||||
* <fg=blue>Run</> your application:
|
||||
1. Change to the project directory
|
||||
2. Create your code repository with the <comment>git init</comment> command
|
||||
3. Execute the <comment>php -S 127.0.0.1:8000 -t public public/index.php</> command
|
||||
4. Browse to the <comment>http://localhost:8000/</> URL.
|
||||
|
||||
Quit the server with CTRL-C.
|
||||
Run <comment>composer require server --dev</> for a better web server.
|
||||
3. Run <comment>composer require server --dev</> to install the development web server,
|
||||
or configure another supported web server <comment>https://symfony.com/doc/current/setup/web_server_configuration.html</>
|
||||
|
||||
* <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc</>
|
||||
|
||||
@@ -24,10 +24,6 @@ if ($debug) {
|
||||
Debug::enable();
|
||||
}
|
||||
|
||||
if ('cli-server' === PHP_SAPI && '/index.php' !== $_SERVER['SCRIPT_NAME'] && is_file(__DIR__.$_SERVER['SCRIPT_NAME'])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? $_ENV['TRUSTED_PROXIES'] ?? false) {
|
||||
Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user