mina-faye is a gem that adds tasks to help the deployment of Faye using [Mina] (http://nadarei.co/mina). This gem based on [mina-sidekiq gem] (https://github.com/Mic92/mina-sidekiq) by [Mic92] (https://github.com/Mic92)
gem install mina-faye
require 'mina_faye/tasks'
...
# to make logs persistent between deploys
set :faye_config, "faye.ru"
task :setup do
# faye needs a place to store its pid file
queue! %[mkdir -p "#{deploy_to}/shared/pids/"]
end
task :deploy do
deploy do
# stop accepting new workers
invoke :'git:clone'
invoke :'deploy:link_shared_paths'
...
to :launch do
...
invoke :'faye:restart'
end
end
end
- faye:stop
- faye:start
- faye:restart
Option | Description |
---|---|
faye_config | Sets the path to faye config file. |
faye_pid | Sets the path to the pid file of a faye server. |
The test requires a local running ssh server with the ssh keys of the current
user added to its ~/.ssh/authorized_keys
. In OS X, this is "Remote Login"
under the Sharing pref pane.
To run the full blown test suite use:
bundle exec rake test
For faster release cycle use
cd test_env
bundle exec mina deploy --verbose