Reputation: 637
Please help, I've tried everything;
The command works well on the development server, but not on live.
Before you mark it as duplicate:
Command.php
ContainerAware
Bundle\Command
directory and in the App\Bundle\Command
namespaceI have tried:
php console --env=preprod cache:clear
and php console --env=preprod cache:warmup
php console --env=preprod
Is there any other way to force symfony to re-check available commands ?
Upvotes: 0
Views: 932
Reputation: 637
For future reference:
The problem was that I connected to the remote host before deploy, and bash doesn't update symlink targets.
So the Command was not available in my current working directory.
A simple cd ..
, cd current
solved it.
Upvotes: 0