Skip to content

Commit f527f75

Browse files
bobvandevijvertobias-93
authored andcommitted
Update console note
1 parent 4daa262 commit f527f75

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Resources/doc/commands.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ Or inside assetic, do
3838
.. caution::
3939

4040
You should follow the Symfony documentation about generating URLs
41-
in the console: `Configuring The Request Context Globally`_.
41+
in the console: `Forcing HTTPS on Generated URLs`_, as the console is unaware
42+
of the host/port combination you use during a request. You can also set the
43+
`HTTP_HOST` environment variable to hold your hostname including the port you
44+
use (i.e. `localhost:8443`). You can also use the `setHost` and `setPort`
45+
methods on the `Router` object to set it at runtime.
4246

4347
.. tip::
4448

@@ -58,4 +62,4 @@ This command lists all exposed routes:
5862
# Symfony 3
5963
$ php bin/console fos:js-routing:debug [name]
6064
61-
.. _`Configuring The Request Context Globally`: http://symfony.com/doc/current/cookbook/console/sending_emails.html#configuring-the-request-context-globally
65+
.. _`Forcing HTTPS on Generated URLs`: https://symfony.com/doc/current/routing.html#forcing-https-on-generated-urls

0 commit comments

Comments
 (0)