Skip to content

[Cookbook] Added note to deployment tools about exporting SYMFONY_ENV #4001

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 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
45ea62b
Added note about exporting SYMFONY_ENV
jasonbouffard Jul 6, 2014
81cec5d
Fix documentation for group_sequence_provider
giosh94mhz Aug 18, 2014
37ab23d
document multiple recipients in XML configs
xabbuh Aug 17, 2014
dc33b0c
add missing Monolog handler type in XML config
xabbuh Aug 18, 2014
2c93aa5
bug #4147 [Cookbook][Logging] add missing Monolog handler type in XML…
weaverryan Aug 21, 2014
93bbd14
tweaks for the web server configuration chapter
xabbuh Aug 17, 2014
da441ae
Fixed minor typos.
ahsio Aug 22, 2014
a49c892
Removing extra whitespace
weaverryan Aug 22, 2014
be90d8a
feature #4142 [Cookbook][Configuration] tweaks for the web server con…
weaverryan Aug 22, 2014
8c96e42
Added the schema_filter option to the reference
peterrehm Aug 20, 2014
7a6e3d1
feature #4150 Added the schema_filter option to the reference (peterr…
weaverryan Aug 22, 2014
bccb080
feature #4140 [Cookbook][Logging] document multiple recipients in XML…
weaverryan Aug 25, 2014
eaaa35a
bug #4145 Fix documentation for group_sequence_provider (giosh94mhz)
weaverryan Aug 25, 2014
fb98977
Adding 'attr' option to the Textarea options list
ronanguilloux Aug 20, 2014
3e68ee7
minor #4152 Adding 'attr' option to the Textarea options list (ronang…
weaverryan Aug 25, 2014
4882b99
bug #4164 Fixed minor typos. (ahsio)
weaverryan Aug 25, 2014
e9d317a
minor #4160 [Reference] consistent & complete config examples (xabbuh)
weaverryan Aug 25, 2014
0f84ab5
Added note about exporting SYMFONY_ENV
jasonbouffard Jul 6, 2014
ef7e8d5
Merge branch '2.3' of github.com:jpb0104/symfony-docs into 2.3
jasonbouffard Aug 27, 2014
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
2 changes: 1 addition & 1 deletion book/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ provides a sequence of groups to be validated:

# src/Acme/DemoBundle/Resources/config/validation.yml
Acme\DemoBundle\Entity\User:
group_sequence_provider: ~
group_sequence_provider: true

.. code-block:: php-annotations

Expand Down
2 changes: 1 addition & 1 deletion components/translation/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Loader too. The default loaders are:

.. versionadded:: 2.1
The ``IcuDatFileLoader``, ``IcuResFileLoader``, ``IniFileLoader``,
``MofileLoader``, ``PoFileLoader`` and ``QtFileLoader`` were introduced
``MoFileLoader``, ``PoFileLoader`` and ``QtFileLoader`` were introduced
in Symfony 2.1.

All file loaders require the :doc:`Config component </components/config/index>`.
Expand Down
30 changes: 25 additions & 5 deletions cookbook/configuration/web_server_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,28 @@
Configuring a Web Server
========================

The web directory is the home of all of your application's public and static
files. Including images, stylesheets and JavaScript files. It is also where the
front controllers live. For more details, see the :ref:`the-web-directory`.
The preferred way to develop your Symfony2 application is to use
:doc:`PHP's internal web server </cookbook/web_server/built_in>`. However,
when using an older PHP version or when running the application in the production
environment, you'll need to use a fully-featured web server. This article
describes several ways to use Symfony with Apache2 or Nginx.

The web directory services as the document root when configuring your web
server. In the examples below, this directory is in ``/var/www/project/web/``.
When using Apache2, you can configure PHP as an
:ref:`Apache module <web-server-apache-mod-php>` or with FastCGI using
:ref:`PHP FPM <web-server-apache-fpm>`. FastCGI also is the preferred way
to use PHP :ref:`with Nginx <web-server-nginx>`.

.. sidebar:: The Web Directory

The web directory is the home of all of your application's public and
static files, including images, stylesheets and JavaScript files. It is
also where the front controllers live. For more details, see the :ref:`the-web-directory`.

The web directory services as the document root when configuring your
web server. In the examples below, the ``web/`` directory will be the
document root. This directory is ``/var/www/project/web/``.

.. _web-server-apache-mod-php:

Apache2 with mod_php/PHP-CGI
----------------------------
Expand Down Expand Up @@ -63,6 +79,8 @@ following configuration snippet:
Require all granted
</Directory>

.. _web-server-apache-fpm:

Apache2 with PHP-FPM
--------------------

Expand Down Expand Up @@ -164,6 +182,8 @@ instead:

FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization

.. _web-server-nginx:

Nginx
-----

Expand Down
6 changes: 6 additions & 0 deletions cookbook/deployment/tools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ as you normally do:
ensures that development packages are not installed in the production
environment.

.. caution::

If you get a "class not found" error during this step, you may need to
run ``export SYMFONY_ENV=prod`` before running this command so that
the ``post-install-cmd`` scripts run in the ``prod`` environment.

D) Clear your Symfony Cache
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
15 changes: 12 additions & 3 deletions cookbook/logging/monolog_email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,20 @@ it is broken down.
/>
<monolog:handler
name="swift"
type="swift_mailer"
from-email="error@example.com"
to-email="error@example.com"
subject="An Error Occurred!"
level="debug"
/>
level="debug">

<monolog:to-email>error@example.com</monolog:to-email>

<!-- or multiple to-email elements -->
<!--
<monolog:to-email>dev1@example.com</monolog:to-email>
<monolog:to-email>dev2@example.com</monolog:to-email>
...
-->
</monolog:handler>
</monolog:config>
</container>

Expand Down
3 changes: 3 additions & 0 deletions reference/configuration/doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ Full default configuration
some_custom_type:
class: Acme\HelloBundle\MyCustomType
commented: true
# If enabled all tables not prefixed with sf2_ will be ignored by the schema
# tool. This is for custom tables which should not be altered automatically.
#schema_filter: ^sf2_

connections:
default:
Expand Down
3 changes: 0 additions & 3 deletions reference/forms/types/options/attr.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,3 @@ as keys. This can be useful when you need to set a custom class for some widget:
$builder->add('body', 'textarea', array(
'attr' => array('class' => 'tinymce'),
));



2 changes: 1 addition & 1 deletion reference/forms/types/options/inherit_data.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ inherit_data
**type**: ``boolean`` **default**: ``false``

This option determines if the form will inherit data from its parent form.
This can be useful is you have a set of fields that are duplicated across
This can be useful if you have a set of fields that are duplicated across
multiple forms. See :doc:`/cookbook/form/inherit_data_option`.
7 changes: 5 additions & 2 deletions reference/forms/types/textarea.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ Renders a ``textarea`` HTML element.
+-------------+------------------------------------------------------------------------+
| Rendered as | ``textarea`` tag |
+-------------+------------------------------------------------------------------------+
| Inherited | - `data`_ |
| options | - `disabled`_ |
| Inherited | - `attr`_ |
| options | - `data`_ |
| | - `disabled`_ |
| | - `empty_data`_ |
| | - `error_bubbling`_ |
| | - `error_mapping`_ |
Expand All @@ -32,6 +33,8 @@ Inherited Options

These options inherit from the :doc:`form </reference/forms/types/form>` type:

.. include:: /reference/forms/types/options/attr.rst.inc

.. include:: /reference/forms/types/options/data.rst.inc

.. include:: /reference/forms/types/options/disabled.rst.inc
Expand Down