[Flow] database settings on a PAAS

Marc Neuhaus apocalip at gmail.com
Tue Apr 30 09:35:09 CEST 2013


Hey Stephan,

you can already do this with one tiny "hack" to the Web/Index.php.
Flow replaces PHP constants in yaml files which are enclosed in %.
So, if you have an PHP constant with the name "PAAS_DB" defined
you can insert %PAAS_DB% into your yaml to use that constant.

Here's a little example how you could use that to get those DB informations
passed into the yaml:

https://gist.github.com/mneuhaus/5487163

Cheers
Marc


2013/4/30 Peter Russ <peter.russ at 4many.net>

> --- Original Nachricht ---
> Absender:   Stephan Herold | heroldhansen GbR
> Datum:       30.04.2013 07:22:
>
>  I assume there is no solution for PAAS by now...?
>> Is it worth to open this topic as a (#crowdfunded) FeatureRequest?
>>
>> Cheers,
>>
>> Stephan
>>
>>
>> 2013/4/22 Stephan Herold | heroldhansen GbR <herold at heroldhansen.de>
>>
>>  Hi list!
>>>
>>> Is there a common way to use the on environment variables for database
>>> setting from PAAS like PagodaBox ($_SERVER["DB1_HOST"] -
>>>
>>> http://help.pagodabox.com/**customer/portal/articles/**
>>> 175426-creating-a-php-mysql-**database<http://help.pagodabox.com/customer/portal/articles/175426-creating-a-php-mysql-database>
>>> )
>>> or CloudControll ($creds['MYSQLS']['MYSQLS_**HOSTNAME'] -
>>> https://www.cloudcontrol.com/**dev-center/Platform%**
>>> 20Documentation#add-ons<https://www.cloudcontrol.com/dev-center/Platform%20Documentation#add-ons>
>>> )
>>> with TYPO3 Flow?
>>>
>>> The YAML-way does not work on dynamically scaled instances.
>>>
>>> Does anyone has done this before?
>>>
>>> Cheers,
>>>
>>> Stephan
>>>
>>
> Hallo Stephan,
>
> Symfony provides a solution for that: it allows configuration in yaml,
> ini, xml and php ;-)
> As this feature is required for an other project I'm looking into
> integrating that into Flow. Will have more about that end of this week.
> Hopes that helps.
>
> Peter
>
>
> --
> Fiat lux! Docendo discimus.
> _____________________________
> uon GbR
>
> http://www.uon.li
> http://www.xing.com/profile/**Peter_Russ<http://www.xing.com/profile/Peter_Russ>
>
> ______________________________**_________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/flow<http://lists.typo3.org/cgi-bin/mailman/listinfo/flow>
>


More information about the Flow mailing list