Installation fails if the database is set to SQLite
Spomky opened this issue · comments
Florent Morselli commented
When creating a .env.local
file with the following database url: ``, I have the following error: DATABASE_URL=sqlite:///%kernel.project_dir%/var/data.db
gosu foo php -r echo "Wait database...\n"; set_time_limit(30); require __DIR__."/config/bootstrap.php"; $u = parse_url($_ENV["DATABASE_URL"]); for(;;) { if(@fsockopen($u["host"].":".($u["port"] ?? 3306))) { break; }}
Wait database...
make: *** [Makefile:53: db] Error 255
Romain Gautier commented
You should drop, or update this line to ignore the check when DATABASE_URL
starts with sqlite:///
https://github.com/mykiwi/symfony-bootstrapped/blob/master/Makefile#L53
Florent Morselli commented
OK understood.
Many thanks.