@@ -20,13 +20,13 @@ Before getting started, you should have done a few things on the fortrabbit side
20
20
Preparing your Application
21
21
--------------------------
22
22
23
- You don't need to change any code to deploy a Symfony application to fortrabbit.
23
+ You don't need to change any code to deploy a Symfony application to fortrabbit.
24
24
But it requires some minor tweaks to its configuration.
25
25
26
26
Configure Logging
27
27
~~~~~~~~~~~~~~~~~
28
28
29
- Per default Symfony logs to a file. Modify the ``app/config/config_prod.yml `` file
29
+ Per default Symfony logs to a file. Modify the ``app/config/config_prod.yml `` file
30
30
to redirect it to :phpfunction: `error_log `:
31
31
32
32
.. configuration-block ::
@@ -73,7 +73,7 @@ to redirect it to :phpfunction:`error_log`:
73
73
Configuring Database Access & Session Handler
74
74
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
75
75
76
- You can use the fortrabbit App Secrets to attain your database credentials.
76
+ You can use the fortrabbit App Secrets to attain your database credentials.
77
77
Create the file ``app/config/config_prod_secrets.php `` with the following
78
78
contents::
79
79
@@ -98,7 +98,7 @@ contents::
98
98
// check if the Memcache component is present
99
99
if (isset($secrets['MEMCACHE'])) {
100
100
$memcache = $secrets['MEMCACHE'];
101
- $handlers = [] ;
101
+ $handlers = array() ;
102
102
103
103
foreach (range(1, $memcache['COUNT']) as $num) {
104
104
$handlers[] = $memcache['HOST'.$num].':'.$memcache['PORT'.$num];
@@ -175,19 +175,19 @@ Configuring the Environment in the Dashboard
175
175
PHP Settings
176
176
~~~~~~~~~~~~
177
177
178
- The PHP version and enabled extensions are configuable under the PHP settings
178
+ The PHP version and enabled extensions are configuable under the PHP settings
179
179
of your App within the fortrabbit Dashboard.
180
180
181
181
Environment Variables
182
182
~~~~~~~~~~~~~~~~~~~~~
183
183
184
- Set the ``SYMFONY_ENV `` environment variable to ``prod `` to make sure the right
184
+ Set the ``SYMFONY_ENV `` environment variable to ``prod `` to make sure the right
185
185
config files get loaded. ENV vars are configuable in fortrabbit Dashboard as well.
186
186
187
187
Document Root
188
188
~~~~~~~~~~~~~
189
189
190
- The document root is configuable for every custom domain you setup for your App.
190
+ The document root is configuable for every custom domain you setup for your App.
191
191
The default is ``/htdocs ``, but for Symfony you probably want to change it to
192
192
``/htdocs/web ``. You also do so in the fortrabbit Dashboard under ``Domain `` settings.
193
193
@@ -197,8 +197,8 @@ Deploying to fortrabbit
197
197
It is assumed that your codebase is under version-control with Git and dependencies
198
198
are managed with Composer (locally).
199
199
200
- Every time you push to fortrabbit composer install runs before your code gets
201
- deployed. To finetune the deployment behavior put a `fortrabbit.yml `_. deployment
200
+ Every time you push to fortrabbit composer install runs before your code gets
201
+ deployed. To finetune the deployment behavior put a `fortrabbit.yml `_. deployment
202
202
file (optional) in the project root.
203
203
204
204
Add fortrabbit as a (additional) Git remote and add your configuration changes:
@@ -221,11 +221,11 @@ Commit and push
221
221
Replace ``<your-app> `` with the name of your fortrabbit App.
222
222
223
223
.. code-block :: bash
224
-
224
+
225
225
Commit received, starting build of branch master
226
226
227
227
––––––––––––––––––––––– ∙ƒ –––––––––––––––––––––––
228
-
228
+
229
229
B U I L D
230
230
231
231
Checksum:
@@ -244,7 +244,7 @@ Commit and push
244
244
Installing dependencies (including require-dev) from lock file
245
245
Nothing to install or update
246
246
Generating autoload files
247
-
247
+
248
248
- - -
249
249
172ms
250
250
@@ -271,11 +271,11 @@ Commit and push
271
271
272
272
.. note ::
273
273
274
- The first ``git push `` takes much longer as all composer dependencies get
275
- downloaded. All subsequent deploys are done within seconds.
274
+ The first ``git push `` takes much longer as all composer dependencies get
275
+ downloaded. All subsequent deploys are done within seconds.
276
276
277
- That's it! Your application is being deployed on fortrabbit. More information
278
- about `database migrations and tunneling `_ can be found in the fortrabbit
277
+ That's it! Your application is being deployed on fortrabbit. More information
278
+ about `database migrations and tunneling `_ can be found in the fortrabbit
279
279
documentation.
280
280
281
281
.. _`fortrabbit` : https://www.fortrabbit.com
0 commit comments