cap-recipes 0.3.24 → 0.3.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/README.textile +54 -50
  2. data/VERSION.yml +1 -1
  3. data/cap-recipes.gemspec +2 -2
  4. metadata +2 -2
@@ -3,22 +3,25 @@ h1. cap-recipes
3
3
  A collection of useful capistrano recipes I have been using in production on a number of sites.
4
4
 
5
5
  This gem is best suited for ruby (and rails) projects which deploy using Apache and Phusion Passenger.
6
+ Worth noting is that the installation tasks are for linux distributions using apt-get packages.
6
7
  Feel free to contribute to this collection and make it even better!
7
8
 
8
- The overall vision for this project being to collect a number of classic, generic recipes which can
9
- be used by the community.
9
+ The overall vision for this project is simply to collect a number of classic, generic recipes
10
+ for common issues which can then be used by the community.
10
11
 
11
12
  Currently included:
12
13
 
13
- * Apache Server
14
- * Rubygems Package Management
15
- * Phusion Passenger (Setup and Deployment)
16
- * Memcache Process (Setup and Deployment)
14
+ * Rubygems Management
15
+ * Apache Server
16
+ * Phusion Passenger
17
+ * Memcached Management
17
18
  * Juggernaut Daemon
18
19
  * Backgroundrb Server
19
20
  * DelayedJob Worker
20
21
  * Whenever Cron Scheduling
21
- * Aptitude Package Management
22
+ * Aptitude Package Management
23
+
24
+ Check out the USAGE section below for specific tasks included in the recipes.
22
25
 
23
26
  h2. INSTALLATION
24
27
 
@@ -26,7 +29,7 @@ To install the gem, execute:
26
29
 
27
30
  @$ sudo gem install cap-recipes --source http://gemcutter.org@
28
31
 
29
- Then, include into your deploy.rb configuration file for Capistrano:
32
+ Then, include into your @deploy.rb@ configuration file for Capistrano:
30
33
 
31
34
  <pre>
32
35
  <code>
@@ -51,6 +54,8 @@ Then, include into your deploy.rb configuration file for Capistrano:
51
54
  </code>
52
55
  </pre>
53
56
 
57
+ You can find full examples of what your @deploy.rb@ file should look like in the @examples@ folder.
58
+
54
59
  h2. USAGE
55
60
 
56
61
  h3. Apache
@@ -65,13 +70,13 @@ h4. Tasks
65
70
 
66
71
  h5. manage.rb
67
72
 
68
- * apache:stop
69
- * apache:start
70
- * apache:restart
73
+ * apache:stop - stops the apache server
74
+ * apache:start - starts the apache server
75
+ * apache:restart - restarts the apache server
71
76
 
72
77
  h5. install.rb
73
78
 
74
- * apache:install
79
+ * apache:install - installs apache and dependencies onto a debian system
75
80
 
76
81
  h3. Rubygems
77
82
 
@@ -83,12 +88,12 @@ h4. Tasks
83
88
 
84
89
  h5. manage.rb
85
90
 
86
- * rubygems:full_update
87
- * rubygems:upgrade
88
- * rubygems:update
89
- * rubygems:cleanup
90
- * rubygems:install
91
- * rubygems:uninstall
91
+ * rubygems:full_update - Upgrades rubygems, updates all installed rubygems and performs a cleanup
92
+ * rubygems:upgrade - Upgrades rubygems version (if available)
93
+ * rubygems:update - Updates all installed rubygems
94
+ * rubygems:cleanup - Performs a cleanup for all outdated rubygems
95
+ * rubygems:install - Installs a specifed gem from name inputted on console
96
+ * rubygems:uninstall - Removes a specified rubygem from name inputted on console
92
97
 
93
98
  h3. Passenger
94
99
 
@@ -109,14 +114,13 @@ h4. Tasks
109
114
 
110
115
  h5. manage.rb
111
116
 
112
- * deploy:start
113
- * deploy:stop
114
- * deploy:restart
115
- * deploy:with_migrations
117
+ * deploy:start - Starts the apache server (if needed)
118
+ * deploy:stop - Stops the apache server (if needed)
119
+ * deploy:restart - Touches the restart.txt file
116
120
 
117
121
  h5. install.rb
118
122
 
119
- * passenger:install
123
+ * passenger:install - Installs the passenger gem, compiles the module silently, and adds the necessary configuration
120
124
 
121
125
  h3. Aptitude
122
126
 
@@ -124,9 +128,9 @@ h4. Tasks
124
128
 
125
129
  h5. manage.rb
126
130
 
127
- * aptitude:install
128
- * aptitude:remove
129
- * aptitude:updates
131
+ * aptitude:install - Installs a specified aptitude package from name inputted on console
132
+ * aptitude:remove - Removes a specified aptitude package from name inputted on console
133
+ * aptitude:updates - Updates all installed aptitude packages
130
134
 
131
135
  h3. Rails
132
136
 
@@ -136,12 +140,12 @@ h4. Tasks
136
140
 
137
141
  h5. manage.rb
138
142
 
139
- * rails:symlink_db_config
140
- * rails:repair_permissions
141
- * rails:tail - tail production log
142
- * rails:ping - ping the server to start it
143
- * rails:sweep:cache
144
- * rails:sweep:log
143
+ * rails:symlink_db_config - Symlinks the database.yml file from shared/config to release path
144
+ * rails:repair_permissions - Forces the permissions on the rails app to make permission errors a thing of the past
145
+ * rails:tail - tail production log - Provides a stream tailing the production log
146
+ * rails:ping - pings the server to start a passenger instance (reduces downtime)
147
+ * rails:sweep:cache - performs a file cache sweep in production
148
+ * rails:sweep:log - performs a log sweep in production
145
149
 
146
150
  h5. hooks.rb
147
151
 
@@ -167,9 +171,9 @@ h4. Tasks
167
171
 
168
172
  h5. manage.rb
169
173
 
170
- * delayed_job:stop
171
- * delayed_job:start
172
- * delayed_job:restart
174
+ * delayed_job:stop - stops the delayed_job workers
175
+ * delayed_job:start - starts the delayed_job workers
176
+ * delayed_job:restart - restarts the delayed_job workers
173
177
 
174
178
  h5. hooks.rb
175
179
 
@@ -195,11 +199,11 @@ h4. Tasks
195
199
 
196
200
  h5. manage.rb
197
201
 
198
- * backgroundrb:stop
199
- * backgroundrb:start
200
- * backgroundrb:restart
201
- * backgroundrb:symlink_config
202
- * backgroundrb:tail
202
+ * backgroundrb:stop - stop backgroundrb workers
203
+ * backgroundrb:start - start backgroundrb workers
204
+ * backgroundrb:restart - restart backgroundrb workers
205
+ * backgroundrb:symlink_config - copy backgroundrb.yml from shared/config to release
206
+ * backgroundrb:tail - tails the backgroundrb log file in production
203
207
 
204
208
  h5. hooks.rb
205
209
 
@@ -225,11 +229,11 @@ h4. Tasks
225
229
 
226
230
  h5. manage.rb
227
231
 
228
- * juggernaut:start
229
- * juggernaut:stop
230
- * juggernaut:restart
231
- * juggernaut:symlink_config
232
- * juggernaut:tail
232
+ * juggernaut:start - starts the juggernaut push server
233
+ * juggernaut:stop - stop the juggernaut push server
234
+ * juggernaut:restart - restart the juggernaut push server
235
+ * juggernaut:symlink_config - copy juggernaut.yml from shared/config to release
236
+ * juggernaut:tail - tails the juggernaut log file in production
233
237
 
234
238
  h5. hooks.rb
235
239
 
@@ -256,13 +260,13 @@ h4. Tasks
256
260
 
257
261
  h5. manage.rb
258
262
 
259
- * memcache:start
260
- * memcache:stop
261
- * memcache:restart
263
+ * memcache:start - starts the memcache daemon
264
+ * memcache:stop - stops the memcache daemon
265
+ * memcache:restart - restarts the memcache daemon
262
266
 
263
267
  h5. install.rb
264
268
 
265
- * memcache:install
269
+ * memcache:install - Installs memcache aptitude package and rubygem
266
270
 
267
271
  h5. hooks
268
272
 
@@ -284,7 +288,7 @@ h4. Tasks
284
288
 
285
289
  h5. manage.rb
286
290
 
287
- * whenever:update_crontab
291
+ * whenever:update_crontab - Performs an update applying the schedule.rb file to your server's cron
288
292
 
289
293
  h5. hooks
290
294
 
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 3
4
- :patch: 24
4
+ :patch: 25
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cap-recipes}
8
- s.version = "0.3.24"
8
+ s.version = "0.3.25"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nathan Esquenazi"]
12
- s.date = %q{2009-10-06}
12
+ s.date = %q{2009-10-11}
13
13
  s.description = %q{Battle-tested capistrano recipes for debian, passenger, apache, delayed_job, juggernaut, rubygems, backgroundrb, rails and more}
14
14
  s.email = %q{nesquena@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap-recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.24
4
+ version: 0.3.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Esquenazi
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-06 00:00:00 -07:00
12
+ date: 2009-10-11 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15