-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.rb
More file actions
36 lines (33 loc) · 753 Bytes
/
example.rb
File metadata and controls
36 lines (33 loc) · 753 Bytes
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
34
35
36
Dir.glob(File.join(File.dirname(__FILE__), 'packages/*.rb')).each { |f| require f }
IP = ARGV.first
policy :setup, :roles => :app do
requires :apt_base
requires :ssh_keys
requires :deploy
requires :capistrano_dirs
requires :htop
requires :git
requires :ruby_enterprise
requires :nginx_with_passenger
requires :nginx_conf
requires :logrotate_app
requires :sqlite3
requires :bundler
requires :libmysql
requires :memcached
requires :monit_base
requires :monit_nginx
requires :monit_memcached
requires :monit_start
end
deployment do
delivery :capistrano do
set :user, 'root'
role :app, IP
end
source do
prefix '/usr/local'
archives '/usr/local/sources'
builds '/usr/local/build'
end
end