Skip to content

Commit 0c11b7b

Browse files
committed
A few more tweaks to outline the steps
1 parent db35c42 commit 0c11b7b

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

cookbook/deployment/heroku.rst

Lines changed: 16 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+
1. `Create a Procfile`_
76+
77+
2. `Set the Environment to prod`_
78+
79+
Then you'll be ready for the last step:
80+
81+
3. `Push your Code to Heroku`_
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,8 @@ 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+
2) Set the Environment to prod
120+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
116121

117122
During a deploy, Heroku runs ``composer install --no-dev`` to install all of the
118123
dependencies your application requires. However, typical `post-install-commands`_
@@ -132,8 +137,8 @@ variables, you can issue a single command to prepare your app for a deployment:
132137
133138
$ heroku config:set SYMFONY_ENV=prod
134139
135-
Pushing to Heroku
136-
~~~~~~~~~~~~~~~~~
140+
3) Push your Code to Heroku
141+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
137142

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

0 commit comments

Comments
 (0)