Skip to content

Commit a801d57

Browse files
committed
minor #4601 [Heroku] A few more tweaks to outline the steps (weaverryan)
This PR was merged into the 2.3 branch. Discussion ---------- [Heroku] A few more tweaks to outline the steps | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3+ | Fixed tickets | n/a Hey guys! This is just a tweak to #4591 - it's just a minor organizational thing so that (hopefully) it's even more clear what 3 steps you need to take. Thanks! Commits ------- 8c7e3b2 Changing to #. format 4ee7cef A few more tweaks to outline the steps
2 parents b76ffad + 8c7e3b2 commit a801d57

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

cookbook/deployment/heroku.rst

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,19 @@ You are now ready to deploy the application as explained in the next section.
6969
Deploying your Application on Heroku
7070
------------------------------------
7171

72-
To deploy your application to Heroku, you must first create a ``Procfile``,
73-
which tells Heroku what command to use to launch the web server with the
74-
correct document root. After that, you will ensure that your Symfony application
75-
runs the ``prod`` environment, and then you'll be ready to ``git push`` to
76-
Heroku for your first deploy!
72+
Before your first deploy, you need to do just 2 more things, which are explained
73+
below:
7774

78-
Creating a Procfile
79-
~~~~~~~~~~~~~~~~~~~
75+
#. :ref:`Create a Procfile <heroku-procfile>`
76+
77+
#. :ref:`Set the Environment to prod <heroku-setting-env-to-prod>`
78+
79+
#. :ref:`Push your Code to Heroku <heroku-push-code>`
80+
81+
.. _heroku-procfile:
82+
83+
1) Create a Procfile
84+
~~~~~~~~~~~~~~~~~~~~
8085

8186
By default, Heroku will launch an Apache web server together with PHP to serve
8287
applications. However, two special circumstances apply to Symfony applications:
@@ -111,8 +116,10 @@ create the ``Procfile`` file and to add it to the repository:
111116
[master 35075db] Procfile for Apache and PHP
112117
1 file changed, 1 insertion(+)
113118
114-
Setting the ``prod`` Environment
115-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
119+
.. _heroku-setting-env-to-prod:
120+
121+
2) Set the Environment to prod
122+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
116123

117124
During a deploy, Heroku runs ``composer install --no-dev`` to install all of the
118125
dependencies your application requires. However, typical `post-install-commands`_
@@ -132,8 +139,10 @@ variables, you can issue a single command to prepare your app for a deployment:
132139
133140
$ heroku config:set SYMFONY_ENV=prod
134141
135-
Pushing to Heroku
136-
~~~~~~~~~~~~~~~~~
142+
.. _heroku-push-code:
143+
144+
3) Push your Code to Heroku
145+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
137146

138147
Next up, it's finally time to deploy your application to Heroku. If you are
139148
doing this for the very first time, you may see a message such as the following:

0 commit comments

Comments
 (0)