cogy 0.2.0 → 0.2.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +14 -7
- data/lib/cogy/capistrano.rb +0 -2
- data/lib/cogy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1faf81c2609b206d60d98e48f243dc56f76e4862
|
|
4
|
+
data.tar.gz: 2931c87a90991bdb9d78632b847afb0645a5af05
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 74f80197ab55e9d9a22f3a12d210584055edcd6a6faec3e7bf928125c73d06c59e108486c3c2f4ed2b38c18a2e96a2365fed8e32a759badc92184cffa504b618
|
|
7
|
+
data.tar.gz: de2abb4b92d7994d5f0c05ac45ee94b885b239a830290a275a0550d086851cf0bda82f16e0ea5206bb3e8a9ee3df432e5d824eafa8670f8752016cd9127071db
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## master (unreleased)
|
|
4
4
|
|
|
5
|
+
## 0.2.1 (2016-11-28)
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Capistrano 2 task is no longer hooked automatically ([65353](https://github.com/skroutz/cogy/commit/653532b1d673c64344f4e652044273224a2b005f))
|
|
10
|
+
|
|
5
11
|
## 0.2.0 (2016-11-28)
|
|
6
12
|
|
|
7
13
|
### Added
|
data/README.md
CHANGED
|
@@ -339,8 +339,12 @@ It can be overriden in the application by creating a view in
|
|
|
339
339
|
|
|
340
340
|
## Deployment
|
|
341
341
|
|
|
342
|
-
Cogy provides the `cogy:notify_cog` task for Capistrano.
|
|
343
|
-
|
|
342
|
+
Cogy provides the `cogy:notify_cog` task for Capistrano. This task should run
|
|
343
|
+
*after* the application server is respawned/restarted, so that the new commands
|
|
344
|
+
are picked up. In Capistrano 2 for example, it should run after
|
|
345
|
+
`deploy:restart`.
|
|
346
|
+
|
|
347
|
+
The following options need to be set:
|
|
344
348
|
|
|
345
349
|
* `cogy_release_trigger_url`: This is the URL of the Cog Trigger that will
|
|
346
350
|
install the newly deployed bundle (ie. `!cogy:install`).
|
|
@@ -362,9 +366,9 @@ require "cogy/capistrano"
|
|
|
362
366
|
|
|
363
367
|
set :cogy_release_trigger_url, "<TRIGGER-INVOCATION-URL>"
|
|
364
368
|
set :cogy_endpoint, "<COGY-MOUNT-POINT>"
|
|
365
|
-
```
|
|
366
369
|
|
|
367
|
-
|
|
370
|
+
after "deploy:restart", "cogy:notify_cog"
|
|
371
|
+
```
|
|
368
372
|
|
|
369
373
|
### Capistrano 3
|
|
370
374
|
|
|
@@ -374,12 +378,15 @@ Add the following in your Capfile:
|
|
|
374
378
|
require "cogy/capistrano"
|
|
375
379
|
```
|
|
376
380
|
|
|
377
|
-
|
|
378
|
-
restarts the application. For example:
|
|
381
|
+
Then configure the task and hook it:
|
|
379
382
|
|
|
380
383
|
```ruby
|
|
381
384
|
# in config/deploy.rb
|
|
382
|
-
|
|
385
|
+
|
|
386
|
+
set :cogy_release_trigger_url, "<TRIGGER-INVOCATION-URL>"
|
|
387
|
+
set :cogy_endpoint, "<COGY-MOUNT-POINT>"
|
|
388
|
+
|
|
389
|
+
after "<app-restart-task>", "cogy:notify_cog"
|
|
383
390
|
```
|
|
384
391
|
|
|
385
392
|
## Development
|
data/lib/cogy/capistrano.rb
CHANGED
data/lib/cogy/version.rb
CHANGED