markbates / grift

Go based task runner
MIT License
432 stars 24 forks source link

Add support for sqlite build tag for config/database.yml #27

Closed g4z closed 6 years ago

g4z commented 6 years ago

Hi Mark

I'm using pop and grift in a small project (without buffalo) using sqlite.

When i use grift to run a command that uses sqlite, i get the error...

sqlite3 was not compiled into the binary

I see Grift PR #23 you provided a fix for the case when database.yml is in the root directory.

In the Pop docs it says database.yml can live in the root or in a config folder.

Pop is easily configured using a YAML file. The configuration file 
should be stored in config/database.yml or database.yml.

For those people that have their database.yml in the config folder, this PR fixes the issue.

Feel free to implement it better :) The idea is just to check in both locations for the database.yml file.

Regards, Gareth

markbates commented 6 years ago

Thanks!