sumkincpp / heroku-buildpack-symfony2

Special version of iphoting/heroku-buildpack-php-tyler which can hold Symfony2 projects.
14 stars 6 forks source link

Not deploying - Composer Installation problem #3

Open gedeondt opened 11 years ago

gedeondt commented 11 years ago

Hi,

I am trying to push a project but Ii always fails like this:

Installing dependencies using Composer Fetching composer.phar http://getcomposer.org/composer.phar /usr/local/bin/erb:117:in set_encoding': No such file or directory - /tmp/build_2gktwszkwau5l/app/config/parameters_prod.yml.erb (Errno::ENOENT) from /usr/local/bin/erb:117:inrun' from /usr/local/bin/erb:154:in `

'

Any ideas?

sumkincpp commented 11 years ago

Hi,

Sorry for delay, I really need to find a time to write a fully bootstrap template app and instructions for it.

Deployment process requires the existence of app/config/parameters.yml in symfony sites repo file where environment variables are configured( see more here ). If it does not exist - the deployment script seeks for app/config/parameters_prod.yml.erb and evaluates it to parameters.yml.

Perhaps there is an error in this part of code but I need to look more on it on a days. Feel free to create a fixing pull request If you want, I'll review it.

In our heroku production installation we have the following parametrs_prod.yml.erb

<%
require 'uri'

pg_uri = URI.parse(ENV['HEROKU_POSTGRESQL_RED_URL'])

%>

parameters:
    database_driver:   pdo_pgsql
    database_host:     <%= pg_uri.host %>
    database_port:     <%= pg_uri.port %>
    database_name:     <%= pg_uri.path[1..-1] %>
    database_user:     <%= pg_uri.user %>
    database_password: <%= pg_uri.password %>

    mailer_transport:  smtp
    mailer_host:       127.0.0.1
    mailer_user:       ~
    mailer_password:   ~

    locale:            en
    secret:            REMOVED_SECRET

Hope it helps.