I am getting an error loading a database configuration. I created my project on my own without the Phalcon DevTools.
So I adjusted my project to include a .phalcon
file to be able to run commands, and added a /config/config.php
with the code below..
$ [email protected]:/vagrant/www$ sudo phalcon migration generate
Phalcon DevTools (1.3.1) Error: Cannot load database configuration
$config = new \Phalcon\Config([
'database' => [
'adapter' => 'Mysql',
'host' => 'localhost',
'username' => 'root',
'password' => '',
'dbname' => 'jream'
]
]);
I do not use a config/loader.php
or config/services.php
, I do everything in the public/index.php
-- is this the cause of the problem?