Swop / heroku-buildpack-symfony2

A Heroku buildpack to compile Symfony2 apps
5 stars 2 forks source link

Try not to duplicate file copy in boot.sh #2

Open Swop opened 11 years ago

Swop commented 11 years ago

In boot.sh, php.ini, parameters.yml and other files are copied/decorated but some actions are allready be done in compile step.

Try not to duplicate actions.

Swop commented 11 years ago

It seams that Addons config info are not present during compilation time. It's thus difficult to use a decorated parameters.yml file with PgSQL infos (and other addons connexion informations) if needed.

@stof points me out a potential solution in Heroku Devcenter : https://devcenter.heroku.com/articles/labs-user-env-compile

He also give me the idea to use his ParameterHandler bundle to build the parameters.yml file (https://github.com/LogSafe/ParameterHandler). It's something to try.

stof commented 11 years ago

the ParameterHandler is now on https://github.com/Incenteev/ParameterHandler as we renamed the organization

Swop commented 11 years ago

Thanks!

stof commented 11 years ago

See https://github.com/Incenteev/heroku-buildpack-sdz/tree/env_parameters for a solution which is working now

Swop commented 11 years ago

Ok!