I’m building a console controller and I can reach it properly in my development environment (Ubuntu/LAMP).
Everything works fine, logging and so.
But when I deploy it to my production server I cannot run it from command line. It is supposed to run as a cron task in the future.
In dev I get the controller in a usual way: php yii controller/action
In dev it gives me:
[error][yii\console\Exception] exception 'yii\base\InvalidRouteException' with message 'Unable to resolve the request "primeapps/index"
[size="2"]primeapps is the controller.[/size]
[size="2"]If I just type php yii I can see the controller there:[/size]
[size=“2”]I’m sure is a stupid tiny mistake from config, but I have checked (almost) everything, and it’s OK.[/size]
[size="2"]Hope anybody can point me in the right direction.[/size]