Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #628 Workaround to use DATABASE_URL with %kernel.project_dir% par…
…ameter (yceruto) This PR was merged into the master branch. Discussion ---------- Workaround to use DATABASE_URL with %kernel.project_dir% parameter Setting `DATABASE_URL=sqlite:///var/data/blog.sqlite` as default, causes this known error through `index.php`: ``` An exception occurred in driver: SQLSTATE[HY000] [14] unable to open database file ``` So the right relative path in this case should be `sqlite:///../var/data/blog.sqlite` BUT then it wouldn't work for `bin/console` entries. Then, relative paths shouldn't be the right way but absolute paths. The right thing is that soon (in 3.4 & 4.0) we can use environment variables with configuration parameters symfony/symfony#23901, so the final configuration would be the one proposed. For now a workaround to make both scenarios work `index.php` and `bin/console`. Commits ------- e45b5d5 Workaround to use DATABASE_URL with %kernel.project_dir% parameter
- Loading branch information