carafe 0.1.0 → 0.1.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/README.md +11 -2
- data/lib/capistrano/tasks/node.rake +2 -1
- data/lib/carafe.rb +4 -0
- data/lib/carafe/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6ec2bc3ebbd3f0c1a68529b0f108e029f0e43f8
|
4
|
+
data.tar.gz: 5e0e6db87cbbc8381bb1be2f8a96618d3466f695
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b869e379e8f0f256cc75f9145fdbda48f631fa4ed78193d8ab918bcd04cc522aad0216eefa08e2d5c9425c4471af9addacafb627fe5ef5290aa8bc33c59455a
|
7
|
+
data.tar.gz: b1cbd11ee1af0dd900086ca224962163518238ea644f9cc4e1eaa632ca5bc1e0ef9bf68713523cda8ec5523970d7ef5a7ea86625becf9c8323c00a0d7d2ac5ad
|
data/README.md
CHANGED
@@ -1,11 +1,17 @@
|
|
1
1
|
# Carafe
|
2
2
|
|
3
|
+
[](https://hex.pm/packages/carafe)
|
4
|
+
[](https://travis-ci.org/schnittchen/carafe)
|
5
|
+
[](https://raw.githubusercontent.com/schnittchen/carafe/master/LICENSE.md)
|
6
|
+
|
3
7
|
This is a tool for deploying Elixir applications, built upon [capistrano](http://capistranorb.com/).
|
4
8
|
|
5
9
|
Carafe requires git for hosting the source repository. It depends on
|
6
10
|
[Edeliver](https://github.com/boldpoker/edeliver) for a few parts that are not handled in
|
7
11
|
Carafe yet. Release building requires [Distillery](https://github.com/bitwalker/distillery).
|
8
12
|
|
13
|
+

|
14
|
+
|
9
15
|
Currently, only full releases, not upgrades, are supported, and archives are
|
10
16
|
kept locally.
|
11
17
|
|
@@ -38,11 +44,14 @@ o vendor/bundle
|
|
38
44
|
+ config/deploy/production.rb
|
39
45
|
```
|
40
46
|
|
41
|
-
Files behind `o` should be gitignored, the others checked in.
|
42
|
-
|
47
|
+
Files behind `o` should be gitignored, the others checked in. In your `Capdfile`, add the following line
|
43
48
|
```
|
44
49
|
require "carafe"
|
45
50
|
```
|
51
|
+
below the line
|
52
|
+
```
|
53
|
+
require "capistrano/deploy"
|
54
|
+
```
|
46
55
|
|
47
56
|
### Prerequisites, Elixir side
|
48
57
|
|
@@ -82,8 +82,9 @@ task "node:full_restart" => ["node:stop-if-running", "node:start"] do
|
|
82
82
|
# see https://github.com/boldpoker/edeliver/blob/0582a32546edca8e6b047c956e3dd4ef74b09ac1/libexec/erlang#L856
|
83
83
|
on Carafe::Node.hosts do |host|
|
84
84
|
within Carafe::Node.app_path do
|
85
|
+
# Don't know why the additional `cd` is needed here.
|
85
86
|
execute <<-EOS
|
86
|
-
for i in {1..10}; do bin/#{script} ping && break || true; sleep 1; done
|
87
|
+
cd #{Carafe::Node.app_path}; for i in {1..10}; do bin/#{script} ping && break || true; sleep 1; done
|
87
88
|
EOS
|
88
89
|
|
89
90
|
execute "bin/#{script}", <<-EOS
|
data/lib/carafe.rb
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
require "carafe/version"
|
2
2
|
|
3
|
+
# We advise users to build their own "deploy" top level task.
|
4
|
+
# We need to clear capistrano's defaults before this can work (cf. README.md)
|
5
|
+
Rake::Task["deploy"].clear
|
6
|
+
|
3
7
|
load File.expand_path("../capistrano/tasks/local.rake", __FILE__)
|
4
8
|
load File.expand_path("../capistrano/tasks/buildhost.rake", __FILE__)
|
5
9
|
load File.expand_path("../capistrano/tasks/node.rake", __FILE__)
|
data/lib/carafe/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carafe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Stratmann
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,9 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
74
|
rubyforge_project:
|
75
|
-
rubygems_version: 2.5.
|
75
|
+
rubygems_version: 2.5.1
|
76
76
|
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: Deployment for Elixir applications, using capistrano
|
79
79
|
test_files: []
|
80
|
-
has_rdoc:
|