ryantownsend (owner)

Revisions

gist: 43055 Download_button fork
public
Public Clone URL: git://gist.github.com/43055.git
Embed All Files: show embed
deploy.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# You can perform the initial start of starling / workling from the command line:
# cap starling:start
# cap workling:start
 
# set this port to the production port in config/workling.yml
set :starling_port, 22122
 
namespace :workling do
  desc "Restart Workling"
  task :restart do
    run "#{deploy_to}/current/script/workling_client stop"
    run "RAILS_ENV=production #{deploy_to}/current/script/workling_client start"
  end
  
  desc "Start Workling"
  task :start do
    run "RAILS_ENV=production #{deploy_to}/current/script/workling_client start"
  end
  
  desc "Stop Workling"
  task :stop do
    run "#{deploy_to}/current/script/workling_client stop"
  end
end
 
namespace :starling do
  desc "Start Starling"
  task :start do
    run "starling -d -p #{starling_port}"
  end
end
 
after :deploy, "workling:restart"