Skip to content
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

Not deploying - Composer Installation problem #3

Open
gedeondt opened this issue Aug 22, 2013 · 1 comment
Open

Not deploying - Composer Installation problem #3

gedeondt opened this issue Aug 22, 2013 · 1 comment

Comments

@gedeondt
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants