04 Jan, 2016

1 commit

  • allows erb templates in_database.yml
    
    This MR will allows us to do use erb templating syntax inside config/database.yml
    
    Example:
    
    
    <code>
    <%
      # http://mislav.uniqpath.com/rails/branching-the-database-along-with-your-code/
      app = "noosfero"
      branch = `git symbolic-ref HEAD 2>/dev/null`.chomp.sub('refs/heads/', '')
      user = (`whoami`).gsub(/\W/, '')
    %>
    development:
      adapter: postgresql
      encoding: unicode
      database: <%= "#{app}_#{branch}_development" %>
      template: template0
      username: <%= user %>
      password:
    </code>
    
    Did not break any test that was passing before:
    
    Before: https://travis-ci.org/noosfero/noosfero/builds/99440879
    
    After: https://travis-ci.org/evandrojr/noosferogov/jobs/99462155
    
    
    See merge request !755
    Antonio Terceiro
     

30 Dec, 2015

2 commits


29 Dec, 2015

2 commits


28 Dec, 2015

5 commits


18 Dec, 2015

2 commits


17 Dec, 2015

1 commit


16 Dec, 2015

3 commits


15 Dec, 2015

5 commits


14 Dec, 2015

3 commits


12 Dec, 2015

6 commits


11 Dec, 2015

3 commits


10 Dec, 2015

4 commits


09 Dec, 2015

3 commits