You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I'm having problems running the command below, it says that the database configuration file was not found, but I'm sending it as an option in the command in '--config'. From my tests, there are many layers where the 'load_config()' method is called, and it seems to me that the configuration is not passed on. Creating a folder in the root of the application like 'config/database.py', fixes the error, but I would like to use the config option in the command to modify. I still couldn't change the 'DB_CONFIG_PATH' variable either.
ConfigurationNotFound
ORM configuration file has not been found in config.database.
at D:\ServerLocal\Python\GrupoKascavel\_ENVKASCAVEL\lib\site-packages\masoniteorm\config.py:28 in load_config
24│
25│
26│ config_module = pydoc.locate(selected_config_path)
27│ if config_module is None:
→ 28│ raise ConfigurationNotFound(
29│ f"ORM configuration file has not been found in {selected_config_path}."
30│ )
31│ return config_module
32│
The text was updated successfully, but these errors were encountered:
Hello. I'm having problems running the command below, it says that the database configuration file was not found, but I'm sending it as an option in the command in '--config'. From my tests, there are many layers where the 'load_config()' method is called, and it seems to me that the configuration is not passed on. Creating a folder in the root of the application like 'config/database.py', fixes the error, but I would like to use the config option in the command to modify. I still couldn't change the 'DB_CONFIG_PATH' variable either.
command:
masonite-orm migrate --connection=default --directory=app/database/migrations --config=app/configs/database.py
Error:
The text was updated successfully, but these errors were encountered: