Closed Olegt0rr closed 3 years ago
So strange
So strange
It was affected by my app.
app.config
imports cli to handle custom cfg -c config.yml
for my app.
So cli
and aerich
conflicts with each other.
It would be great if you know how to isolate aerich from app's cli
@long2ice is there any way to pass args for app module through aerich? In my case: provide config path for app via -c
Sorry I don't know what do you mean
To run my app I use
python -m my_app -c config.yml
So, my app always waits for -c config.yml
When aerich trying to work with my app, it didn't pass -c config.yml
, so my app can't get my config.
What about split config file from you app?
To read
POSTGRES_URI
my app uses CLI with-c
flag (to provide config path) How can I set up aerich to prevent CLI conflicts?Version
aerich==0.5.0 As described, I've dropped all database, removed migrations folder.
Run command
Result
Config
aerich.ini
app.config.TORTOISE_ORM