8000 fortrabbit deployment guide + index listing by ostark · Pull Request #6291 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content
8000

fortrabbit deployment guide + index listing #6291

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

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
some text formats and added missing configuration-block(s)
  • Loading branch information
Oliver Stark committed Feb 26, 2016
commit d52daa0eb655064f632880fc56c31036e4599937
65 changes: 51 additions & 14 deletions cookbook/deployment/fortrabbit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Create the file ``app/config_prod_secrets.php`` with the following contents::
ini_set('session.save_handler', 'memcached');
ini_set('session.save_path', implode(',', $handlers));

if ($memcache['COUNT'] == 2) {
if ("2" === $memcache['COUNT']) {
ini_set('memcached.sess_number_of_replicas', 1);
ini_set('memcached.sess_consistent_hash', 1);
ini_set('memcached.sess_binary', 1);
Expand All @@ -121,20 +121,57 @@ Create the file ``app/config_prod_secrets.php`` with the following contents::

Make sure this file is listed in your *imports*:

.. code-block:: yaml
.. configuration-block::

.. code-block:: yaml

# app/config/config_prod.yml
imports:
- { resource: config.yml }
- { resource: config_prod_secrets.php }

# ..
framework:
session:
# set handler_id to null to use default session handler from php.ini (memcached)
handler_id: ~
# ..

.. code-block:: xml

<!-- app/config/config_prod.xml -->
<?xml version="1.0" encoding="UTF-8"?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:framework="http://symfony.com/schema/dic/symfony"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

<imports>
<import resource="config.xml" />
<import resource="config_prod_secrets.php" />
</imports>

<!-- .. -->
<framework:config>
<!-- .. -->
<framework:session save_path="null" />
</framework:config>
</container>

# app/config/config_prod.yml
imports:
- { resource: config.yml }
- { resource: config_prod_secrets.php }
.. code-block:: php

# ..
framework:
session:
# set handler_id to null to use default session handler from php.ini (memcached)
handler_id: ~
# ..
// app/config/config_prod.php
$loader->import('config/config.php');
$loader->import('config_prod_secrets.php');

$container->loadFromExtension('framework', array(
'session' => array(
'handler_id' => null,
),
));

// ...

Configuring the Environment in the Dashboard
--------------------------------------------
Expand All @@ -155,8 +192,8 @@ Document Root
~~~~~~~~~~~~~

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.
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.

Deploying to fortrabbit
-----------------------
Expand Down
0