Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed array [] notation and trailing spaces #6456

Merged
merged 1 commit into from
Apr 11, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions cookbook/deployment/fortrabbit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ Before getting started, you should have done a few things on the fortrabbit side
Preparing your Application
--------------------------

You don't need to change any code to deploy a Symfony application to fortrabbit.
You don't need to change any code to deploy a Symfony application to fortrabbit.
But it requires some minor tweaks to its configuration.

Configure Logging
~~~~~~~~~~~~~~~~~

Per default Symfony logs to a file. Modify the ``app/config/config_prod.yml`` file
Per default Symfony logs to a file. Modify the ``app/config/config_prod.yml`` file
to redirect it to :phpfunction:`error_log`:

.. configuration-block::
Expand Down Expand Up @@ -73,7 +73,7 @@ to redirect it to :phpfunction:`error_log`:
Configuring Database Access & Session Handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can use the fortrabbit App Secrets to attain your database credentials.
You can use the fortrabbit App Secrets to attain your database credentials.
Create the file ``app/config/config_prod_secrets.php`` with the following
contents::

Expand All @@ -98,7 +98,7 @@ contents::
// check if the Memcache component is present
if (isset($secrets['MEMCACHE'])) {
$memcache = $secrets['MEMCACHE'];
$handlers = [];
$handlers = array();

foreach (range(1, $memcache['COUNT']) as $num) {
$handlers[] = $memcache['HOST'.$num].':'.$memcache['PORT'.$num];
Expand Down Expand Up @@ -175,19 +175,19 @@ Configuring the Environment in the Dashboard
PHP Settings
~~~~~~~~~~~~

The PHP version and enabled extensions are configuable under the PHP settings
The PHP version and enabled extensions are configuable under the PHP settings
of your App within the fortrabbit Dashboard.

Environment Variables
~~~~~~~~~~~~~~~~~~~~~

Set the ``SYMFONY_ENV`` environment variable to ``prod`` to make sure the right
Set the ``SYMFONY_ENV`` environment variable to ``prod`` to make sure the right
config files get loaded. ENV vars are configuable in fortrabbit Dashboard as well.

Document Root
~~~~~~~~~~~~~

The document root is configuable for every custom domain you setup for your App.
The document root is configuable for every custom domain you setup for your App.
The default is ``/htdocs``, but for Symfony you probably want to change it to
``/htdocs/web``. You also do so in the fortrabbit Dashboard under ``Domain`` settings.

Expand All @@ -197,8 +197,8 @@ Deploying to fortrabbit
It is assumed that your codebase is under version-control with Git and dependencies
are managed with Composer (locally).

Every time you push to fortrabbit composer install runs before your code gets
deployed. To finetune the deployment behavior put a `fortrabbit.yml`_. deployment
Every time you push to fortrabbit composer install runs before your code gets
deployed. To finetune the deployment behavior put a `fortrabbit.yml`_. deployment
file (optional) in the project root.

Add fortrabbit as a (additional) Git remote and add your configuration changes:
Expand All @@ -221,11 +221,11 @@ Commit and push
Replace ``<your-app>`` with the name of your fortrabbit App.

.. code-block:: bash

Commit received, starting build of branch master

––––––––––––––––––––––– ∙ƒ –––––––––––––––––––––––

B U I L D

Checksum:
Expand All @@ -244,7 +244,7 @@ Commit and push
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files

- - -
172ms

Expand All @@ -271,11 +271,11 @@ Commit and push

.. note::

The first ``git push`` takes much longer as all composer dependencies get
downloaded. All subsequent deploys are done within seconds.
The first ``git push`` takes much longer as all composer dependencies get
downloaded. All subsequent deploys are done within seconds.

That's it! Your application is being deployed on fortrabbit. More information
about `database migrations and tunneling`_ can be found in the fortrabbit
That's it! Your application is being deployed on fortrabbit. More information
about `database migrations and tunneling`_ can be found in the fortrabbit
documentation.

.. _`fortrabbit`: https://www.fortrabbit.com
Expand Down