cap-recipes 0.3.23 → 0.3.24
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.
- data/README.textile +40 -15
- data/VERSION.yml +1 -1
- data/cap-recipes.gemspec +1 -1
- metadata +1 -1
data/README.textile
CHANGED
@@ -100,6 +100,7 @@ h4. Configuration
|
|
100
100
|
* local_ping_path - the localhost path to ping to start passenger [default: "http://localhost"]
|
101
101
|
|
102
102
|
The following files and folders are expected to exist:
|
103
|
+
|
103
104
|
* "#{base_ruby_path}/lib/ruby"
|
104
105
|
* "#{base_ruby_path}/bin/ruby"
|
105
106
|
* "#{base_ruby_path}/bin/gem"
|
@@ -144,10 +145,14 @@ h5. manage.rb
|
|
144
145
|
|
145
146
|
h5. hooks.rb
|
146
147
|
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
148
|
+
<pre>
|
149
|
+
<code>
|
150
|
+
after "deploy:update_code", "rails:symlink_db_config" # copy database.yml file to release path
|
151
|
+
after "deploy:update_code", "rails:sweep:cache" # clear cache after updating code
|
152
|
+
after "deploy:restart" , "rails:repair_permissions" # fix the permissions to work properly
|
153
|
+
after "deploy:restart" , "rails:ping" # ping passenger to start the rails instance
|
154
|
+
</code>
|
155
|
+
</pre>
|
151
156
|
|
152
157
|
h3. DelayedJob
|
153
158
|
|
@@ -168,9 +173,13 @@ h5. manage.rb
|
|
168
173
|
|
169
174
|
h5. hooks.rb
|
170
175
|
|
171
|
-
|
172
|
-
|
173
|
-
|
176
|
+
<pre>
|
177
|
+
<code>
|
178
|
+
after "deploy:start", "delayed_job:start"
|
179
|
+
after "deploy:stop", "delayed_job:stop"
|
180
|
+
after "deploy:restart", "delayed_job:restart"
|
181
|
+
</code>
|
182
|
+
</pre>
|
174
183
|
|
175
184
|
h3. Backgroundrb
|
176
185
|
|
@@ -194,9 +203,13 @@ h5. manage.rb
|
|
194
203
|
|
195
204
|
h5. hooks.rb
|
196
205
|
|
197
|
-
|
198
|
-
|
199
|
-
|
206
|
+
<pre>
|
207
|
+
<code>
|
208
|
+
after "deploy:update_code" , "backgroundrb:symlink_config" # copy backgroundrb config to release
|
209
|
+
after "deploy:restart" , "backgroundrb:restart" # restart backgroundrb daemon
|
210
|
+
after "backgroundrb:restart" , "backgroundrb:repair_permissions" # restart backgroundrb damon
|
211
|
+
</code>
|
212
|
+
</pre>
|
200
213
|
|
201
214
|
h3. Juggernaut
|
202
215
|
|
@@ -220,8 +233,12 @@ h5. manage.rb
|
|
220
233
|
|
221
234
|
h5. hooks.rb
|
222
235
|
|
223
|
-
|
224
|
-
|
236
|
+
<pre>
|
237
|
+
<code>
|
238
|
+
after "deploy:update_code", "juggernaut:symlink_config" # copy juggernaut.yml to release
|
239
|
+
after "deploy:restart" , "juggernaut:restart" # restart juggernaut daemon
|
240
|
+
</code>
|
241
|
+
</pre>
|
225
242
|
|
226
243
|
h3. Memcache
|
227
244
|
|
@@ -249,7 +266,11 @@ h5. install.rb
|
|
249
266
|
|
250
267
|
h5. hooks
|
251
268
|
|
252
|
-
|
269
|
+
<pre>
|
270
|
+
<code>
|
271
|
+
after "deploy:restart", "memcache:restart" # clear cache after updating code
|
272
|
+
</code>
|
273
|
+
</pre>
|
253
274
|
|
254
275
|
h3. Whenever
|
255
276
|
|
@@ -267,8 +288,12 @@ h5. manage.rb
|
|
267
288
|
|
268
289
|
h5. hooks
|
269
290
|
|
270
|
-
|
271
|
-
|
291
|
+
<pre>
|
292
|
+
<code>
|
293
|
+
after "deploy:symlink", "whenever:update_crontab"
|
294
|
+
</code>
|
295
|
+
</pre>
|
296
|
+
|
272
297
|
h2. EXAMPLE
|
273
298
|
|
274
299
|
Here is a sample deploy.rb file using cap_recipes:
|
data/VERSION.yml
CHANGED
data/cap-recipes.gemspec
CHANGED