Make sure you set the envionment on the commandline before doing that. You should be able to prepend something like: RAILS_ENV=production and have it work. On May 10, 2012 12:41 PM, "TeLeKoTeKo" <[email protected]> wrote:
> Hello! > > I'm trying to make my gitorious authenticate using openldap... > I am following this tutorial: > https://gitorious.org/gitorious/pages/LdapIntegration > > After configured authentication.yml, I was trying the script > > bundle exec script/test_ldap_connection admin admin > > But, i get this error: > > --- > git@vm01:/var/www/gitorious$ sudo bundle exec script/ > test_ldap_connection admin admin > ./config/environment.rb:26: Your config/gitorious.yml does not have an > entry for your current Rails environment. Please consult config/ > gitorious.sample.yml for instructions. (RuntimeError) > from ./config/../vendor/rails/railties/lib/initializer.rb:111:in > `run' > from ./config/environment.rb:24 > from script/test_ldap_connection:8:in `require' > from script/test_ldap_connection:8 > --- > > My gitorious.yml is ok... Gitorious is running without problems.. git- > daemon, git-poller.. everything ok, starting without problemas with > gitorious.yml.. > > This problem is only charged when I run the test script ldap. > > Someone can help me? > > Thanks!! > > > -- > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected]
