Skip to content

Commit

Permalink
minor #4601 [Heroku] A few more tweaks to outline the steps (weaverryan)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
weaverryan committed Mar 15, 2015
2 parents b76ffad + 8c7e3b2 commit a801d57
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions cookbook/deployment/heroku.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,19 @@ You are now ready to deploy the application as explained in the next section.
Deploying your Application on Heroku
------------------------------------

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

Creating a Procfile
~~~~~~~~~~~~~~~~~~~
#. :ref:`Create a Procfile <heroku-procfile>`

#. :ref:`Set the Environment to prod <heroku-setting-env-to-prod>`

#. :ref:`Push your Code to Heroku <heroku-push-code>`

.. _heroku-procfile:

1) Create a Procfile
~~~~~~~~~~~~~~~~~~~~

By default, Heroku will launch an Apache web server together with PHP to serve
applications. However, two special circumstances apply to Symfony applications:
Expand Down Expand Up @@ -111,8 +116,10 @@ create the ``Procfile`` file and to add it to the repository:
[master 35075db] Procfile for Apache and PHP
1 file changed, 1 insertion(+)
Setting the ``prod`` Environment
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. _heroku-setting-env-to-prod:

2) Set the Environment to prod
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

During a deploy, Heroku runs ``composer install --no-dev`` to install all of the
dependencies your application requires. However, typical `post-install-commands`_
Expand All @@ -132,8 +139,10 @@ variables, you can issue a single command to prepare your app for a deployment:
$ heroku config:set SYMFONY_ENV=prod
Pushing to Heroku
~~~~~~~~~~~~~~~~~
.. _heroku-push-code:

3) Push your Code to Heroku
~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

0 comments on commit a801d57

Please sign in to comment.