Skip to content

Commit 766fab4

Browse files
committed
minor #10185 Update setup.rst (ThamiSadouk, weaverryan)
This PR was merged into the 4.1 branch. Discussion ---------- Update setup.rst IMO we don't need to download the web server bundle except if we have the skeleton version. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 722f5f8 Clarifying when you need to or don't need to install the server bundle 184c298 Update setup.rst
2 parents a6dadc3 + 722f5f8 commit 766fab4

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

setup.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,22 @@ In other words, your new app is ready!
3434
3535
$ composer create-project symfony/skeleton my-project
3636
37+
# optional: install the web server bundle (explained next)
38+
$ cd my-project
39+
$ composer require symfony/web-server-bundle --dev
40+
3741
Running your Symfony Application
3842
--------------------------------
3943

4044
On production, you should use a web server like Nginx or Apache
4145
(see :doc:`configuring a web server to run Symfony </setup/web_server_configuration>`).
4246
But for development, it's even easier to use the :doc:`Symfony PHP web server <setup/built_in_web_server>`.
4347

44-
First, move into your new project and install the server:
48+
Move into your new project and start the server:
4549

4650
.. code-block:: terminal
4751
4852
$ cd my-project
49-
$ composer require symfony/web-server-bundle --dev
50-
51-
To start the server, run:
52-
53-
.. code-block:: terminal
54-
5553
$ php bin/console server:run
5654
5755
Open your browser and navigate to ``http://localhost:8000/``. If everything is working,

0 commit comments

Comments
 (0)