Closed audionerd closed 12 years ago
Taking an optimistic pass through ERB might be the best option. I'll do some digging and see if there are any other options. Thanks for the heads up.
This has been addressed on master. Let me know if it gets you up and running. To update your local copy:
$ cd ~/.labrador
$ git pull origin master
$ mkdir -p tmp/
$ touch tmp/restart.txt
I encounter a "couldn't parse YAML" error when any ERB appears in
database.yml
.Labrador doesn't use ERB before parsing the YAML file (see https://github.com/chrismccord/labrador/blob/master/lib/labrador/adapter.rb#L75)
A fix might be:
Some ERB would of course break – references to application code that Labrador doesn't know about for example. But often ERB is used for simple things, conditional logic. Trying to run
database.yml
through ERB before parsing might be helpful.