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

Conversation

jasonbouffard
Copy link
Contributor

Fixes an issue (https://github.com/symfony/symfony-standard/issues/662) on symfony-standard.

@jasonbouffard jasonbouffard changed the title Added note to deployment tools about exporting SYMFONY_ENV [Cookbook] Added note to deployment tools about exporting SYMFONY_ENV Jul 6, 2014
@@ -97,6 +97,11 @@ as you normally do:
ensures that development packages are not installed in the production
environment.

.. note::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you think of changing this to .. caution::?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@wouterj
Copy link
Member

wouterj commented Aug 15, 2014

This PR needs to be rebased (if you don't know what that is, we'll explain it to you)

@xabbuh
Copy link
Member

xabbuh commented Aug 16, 2014

I think it would be helpful to also provide some information on how one would notice that they need to set the environment variable.

.. note::

You may need to pass the environment name via ``export SYMFONY_ENV=prod``
for the Symfony ``post-install-cmd`` commands to execute properly.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not be even more specific? Something like:

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 That's what I had in mind when I wrote the comment. Though I would split this into two sentences.

giosh94mhz and others added 18 commits August 18, 2014 18:10
Adds an example on how to configure multiple recipients in Monolog
for sending log entries as e-mails.
… config (xabbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

[Cookbook][Logging] add missing Monolog handler type in XML config

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets |

Omitting the type of a handler leads to an error:

> Symfony\Component\Config\Definition\Exception\InvalidConfigurationException: The child node "type" at path "monolog.handlers.swift" must be configured.

Commits
-------

dc33b0c add missing Monolog handler type in XML config
…figuration chapter (xabbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

[Cookbook][Configuration] tweaks for the web server configuration chapter

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes
| Applies to    | all
| Fixed tickets |

Tweaks to #3915 as suggested by @weaverryan.

Commits
-------

93bbd14 tweaks for the web server configuration chapter
…ehm)

This PR was submitted for the 2.5 branch but it was merged into the 2.3 branch instead (closes #4150).

Discussion
----------

Added the schema_filter option to the reference

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | ?
| Fixed tickets | -

Shall the optional setting be added to XML as well? How?
I am unsure if it is actually to which version this relates to the DoctrineBundle.

Relates to doctrine/migrations#101

Commits
-------

20cba4e Added the schema_filter option to the reference
… configs (xabbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

[Cookbook][Logging] document multiple recipients in XML configs

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes (symfony/monolog-bundle#91)
| Applies to    | all
| Fixed tickets | #3940, #4135

Commits
-------

37ab23d document multiple recipients in XML configs
This PR was merged into the 2.3 branch.

Discussion
----------

Fix documentation for group_sequence_provider

The current documentation for `group_sequence_provider` option in the docs is wrong.
It states that the option should be set with:
```YAML
Your\Class\Name:
    group_sequence_provider: ~
    ...
````
But this didn't work.

By looking at the unit test I came up the the right version:
```YAML
Your\Class\Name:
    group_sequence_provider: true
    ...
````

Commits
-------

81cec5d Fix documentation for group_sequence_provider
`attr` is a quite useful option, but not yet listed here. BTW, the `attr.rst.inc` file already includes an `attr` conf. example concerning textareas.
…uilloux)

This PR was submitted for the 2.5 branch but it was merged into the 2.3 branch instead (closes #4152).

Discussion
----------

Adding 'attr' option to the Textarea options list

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?  | nope
| Applies to    | all?
| Fixed tickets | ?

`attr` is a quite useful option, but not yet listed here, so I added it.
BTW, the `attr.rst.inc` file already includes an `attr` conf. example concerning textareas.

Commits
-------

d6f9bd1 Adding 'attr' option to the Textarea options list
This PR was merged into the 2.3 branch.

Discussion
----------

Fixed minor typos.

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all (or 2.3+)
| Fixed tickets |

Commits
-------

da441ae Fixed minor typos.
This PR was merged into the 2.3 branch.

Discussion
----------

[Reference] consistent & complete config examples

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets |

Make configuration examples in the reference section consistent throughout the different configuration formats. Also fixing several syntax issues.

This follow #4114 and #4129.

Commits
-------

01dc25c [Reference] consistent & complete config examples
Conflicts:
	cookbook/deployment/tools.rst
@jasonbouffard
Copy link
Contributor Author

I think I bombed this PR.

@cordoval
Copy link
Contributor

you can just push -f and save it, no need to open a new one

@jasonbouffard
Copy link
Contributor Author

@cordoval, sorry about that. I had some time rebasing. I created a new PR #4182.

weaverryan added a commit that referenced this pull request Sep 16, 2014
This PR was merged into the 2.3 branch.

Discussion
----------

Added note about exporting SYMFONY_ENV

New PR to replace the mess I made in #4001. Sorry about that. I also applied all the suggestions.

Commits
-------

15ce0fe Added note about exporting SYMFONY_ENV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants