wa0x6e / Cake-Resque

Resque plugin for CakePHP : for creating background jobs that can be processed offline later
MIT License
159 stars 56 forks source link

How does deploy CakeResque to remote server? #24

Closed 346 closed 11 years ago

346 commented 11 years ago

Hi. We deployed CakeResque via Capistrano on trial. via Capistrano, I execute restart command success, but actually CakeResques is not started. via SSH, I executed restart command failed...

-- version --

PHP 5.3.19 CakeResque v3.3.1

wa0x6e commented 11 years ago

So start command works, but only restart fails ? And it fails whether you use Capistrano or directly log into the remote server's console via SSH ?

What does it says when it fail ? Is restart working correctly on your local server ?

346 commented 11 years ago

thank you for your reply.

"start and restart command" success when I login to remote server via SSH. works fine. this commands fail when I execute to remote server with Capistano or SSH command. I would like to restart CakeResque after deployed to remote server.

\ success

ssh user@example.com cake.php /path/to/Console/cake CakeResque.Resque restart -app /path/to

\ fail

ssh user@example.com /path/to/Console/cake CakeResque.Resque restart -app /path/to

wa0x6e commented 11 years ago

The command is CakeResque.CakeResque, and not CakeResque.Resque

ssh user@example.com cake.php /path/to/Console/cake CakeResque.Resque restart -app /path/to

What does the cake.php argument do in this command ?

346 commented 11 years ago

sorry, its fixed example.

ssh user@example.com php /path/to/Console/cake.php CakeResque.CakeResque restart -app /path/to