rails_deploy 0.5.9 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kamal_override/clone.rb +11 -0
- data/lib/kamal_override/proxy.rb +21 -0
- data/lib/kamal_override.rb +2 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea22a1079ac505c5770ca19017c0293e10ba70c14efb8dddd6c8dcc1b38d9e51
|
4
|
+
data.tar.gz: f8f435ebe62878063e8191599dd7e20d65bd8440cac7c73ab37d35f86d866e57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe6f2b4ae3cc16cc5c912e31435806bbbc345073a550f8eafe05a7288bcf25c3fea9ac35c47834b962cf47317da2b79a18547ec026f24f3087d8c23d324b5b23
|
7
|
+
data.tar.gz: a74bc5f66f2b109ebccb30df853c116a70df1e7f637c5e2c463b91788516d608a3c00e1bf76ad3c3a233479a04004489dd49d34d134a203258b75496f081ca6e
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module KamalOverride
|
2
|
+
module Clone
|
3
|
+
|
4
|
+
def clone
|
5
|
+
git :clone, escaped_root, '--recurse-submodules=vendor/engine', '--shallow-submodules', path: config.builder.clone_directory.shellescape
|
6
|
+
end
|
7
|
+
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
Kamal::Commands::Builder::Clone.prepend KamalOverride::Clone
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module KamalOverride
|
2
|
+
module Proxy
|
3
|
+
|
4
|
+
def run
|
5
|
+
docker(
|
6
|
+
:run,
|
7
|
+
'--name', container_name,
|
8
|
+
'--network', 'kamal',
|
9
|
+
'--detach',
|
10
|
+
'--restart', 'unless-stopped',
|
11
|
+
'--volume', 'kamal-proxy-config:/home/kamal-proxy/.config/kamal-proxy',
|
12
|
+
'--volume', '~/app/acme:/certs',
|
13
|
+
"\$\(#{get_boot_options.join(' ')}\)",
|
14
|
+
config.proxy_image
|
15
|
+
)
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
Kamal::Commands::Proxy.prepend KamalOverride::Proxy
|
data/lib/kamal_override.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mingyuan Qin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -49,8 +49,10 @@ files:
|
|
49
49
|
- README.md
|
50
50
|
- lib/deploy.rb
|
51
51
|
- lib/kamal_override.rb
|
52
|
+
- lib/kamal_override/clone.rb
|
52
53
|
- lib/kamal_override/configuration.rb
|
53
54
|
- lib/kamal_override/docker.rb
|
55
|
+
- lib/kamal_override/proxy.rb
|
54
56
|
homepage: https://github.com/work-design/rails_deploy
|
55
57
|
licenses:
|
56
58
|
- MIT
|