capistrano-craft 0.3.0 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +10 -10
- data/lib/capistrano/craft/defaults.rb +6 -1
- data/lib/capistrano/craft/version.rb +1 -1
- data/lib/capistrano/tasks/craft.rake +18 -2
- data/lib/capistrano/tasks/deploy.rake +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53d3297ddafeaf8f748f908c119633aad45626add662d55feb4d6f2dd361e2ff
|
4
|
+
data.tar.gz: 92c0121dcb40d4c8bce91850e87e0d37442f7b12fc452503d769b4ff3d06e936
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6d890b59421694854722ae2175bf052d011286d200451672a3d5cd980e98c6b0cccb5d4ab4d21a17b56f218da828a8209c76aa8d6c7c3917b232040a9d4e552
|
7
|
+
data.tar.gz: c05d399ec8e6adce44aef7c911a978c9c76b08e682aff153fca5d7563712b71746d2ae8911b10b96685f6429ae948277e292b6b0bc33c8a7d1d7d5a3a4a67597
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
capistrano-craft (0.3.
|
4
|
+
capistrano-craft (0.3.4)
|
5
5
|
capistrano (~> 3.1)
|
6
6
|
capistrano-composer (~> 0.0.6)
|
7
7
|
|
@@ -10,21 +10,21 @@ GEM
|
|
10
10
|
specs:
|
11
11
|
airbrussh (1.4.0)
|
12
12
|
sshkit (>= 1.6.1, != 1.7.0)
|
13
|
-
capistrano (3.
|
13
|
+
capistrano (3.16.0)
|
14
14
|
airbrussh (>= 1.0.0)
|
15
15
|
i18n
|
16
16
|
rake (>= 10.0.0)
|
17
17
|
sshkit (>= 1.9.0)
|
18
18
|
capistrano-composer (0.0.6)
|
19
19
|
capistrano (>= 3.0.0.pre)
|
20
|
-
concurrent-ruby (1.1.
|
20
|
+
concurrent-ruby (1.1.9)
|
21
21
|
diff-lcs (1.3)
|
22
|
-
i18n (1.8.
|
22
|
+
i18n (1.8.10)
|
23
23
|
concurrent-ruby (~> 1.0)
|
24
|
-
net-scp (
|
25
|
-
net-ssh (>= 2.6.5, <
|
26
|
-
net-ssh (
|
27
|
-
rake (13.0.
|
24
|
+
net-scp (3.0.0)
|
25
|
+
net-ssh (>= 2.6.5, < 7.0.0)
|
26
|
+
net-ssh (6.1.0)
|
27
|
+
rake (13.0.6)
|
28
28
|
rspec (3.9.0)
|
29
29
|
rspec-core (~> 3.9.0)
|
30
30
|
rspec-expectations (~> 3.9.0)
|
@@ -38,7 +38,7 @@ GEM
|
|
38
38
|
diff-lcs (>= 1.2.0, < 2.0)
|
39
39
|
rspec-support (~> 3.9.0)
|
40
40
|
rspec-support (3.9.2)
|
41
|
-
sshkit (1.21.
|
41
|
+
sshkit (1.21.2)
|
42
42
|
net-scp (>= 1.1.2)
|
43
43
|
net-ssh (>= 2.8.0)
|
44
44
|
|
@@ -50,4 +50,4 @@ DEPENDENCIES
|
|
50
50
|
rspec
|
51
51
|
|
52
52
|
BUNDLED WITH
|
53
|
-
2.
|
53
|
+
2.2.4
|
@@ -2,7 +2,12 @@
|
|
2
2
|
# Craft CMS defaults
|
3
3
|
#
|
4
4
|
|
5
|
-
append :linked_dirs, "vendor",
|
5
|
+
append :linked_dirs, "vendor",
|
6
|
+
"storage/backups",
|
7
|
+
"storage/composer-backups",
|
8
|
+
"storage/config-backups",
|
9
|
+
"storage/logs",
|
10
|
+
"storage/runtime"
|
6
11
|
|
7
12
|
set :config_path, "config"
|
8
13
|
set :php, "php"
|
@@ -31,7 +31,9 @@ namespace :craft do
|
|
31
31
|
task :apply do
|
32
32
|
on release_roles(fetch(:craft_deploy_roles)) do
|
33
33
|
craft_console "backup/db"
|
34
|
+
craft_console "migrate/all --no-content"
|
34
35
|
craft_console "project-config/apply"
|
36
|
+
craft_console "migrate"
|
35
37
|
end
|
36
38
|
end
|
37
39
|
end
|
@@ -39,9 +41,23 @@ namespace :craft do
|
|
39
41
|
namespace :assets do
|
40
42
|
desc "Synchronise assets between local and remote server"
|
41
43
|
task :sync do
|
44
|
+
invoke "craft:assets:pull"
|
45
|
+
invoke "craft:assets:push"
|
46
|
+
end
|
47
|
+
|
48
|
+
desc "Download all assets from the remote server"
|
49
|
+
task :pull do
|
42
50
|
run_locally do
|
43
51
|
release_roles(fetch(:craft_deploy_roles)).each do |role|
|
44
52
|
execute :rsync, "-rzO #{role.user}@#{role.hostname}:#{shared_path}/#{fetch(:assets_path)}/ #{fetch(:assets_path)}"
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
desc "Upload all assets to the remote server"
|
58
|
+
task :push do
|
59
|
+
run_locally do
|
60
|
+
release_roles(fetch(:craft_deploy_roles)).each do |role|
|
45
61
|
execute :rsync, "-rzO #{fetch(:assets_path)}/ #{role.user}@#{role.hostname}:#{shared_path}/#{fetch(:assets_path)}"
|
46
62
|
end
|
47
63
|
end
|
@@ -58,13 +74,13 @@ namespace :craft do
|
|
58
74
|
desc "Pull database and sync assets"
|
59
75
|
task :pull do
|
60
76
|
invoke "db:pull"
|
61
|
-
invoke "craft:assets:
|
77
|
+
invoke "craft:assets:pull"
|
62
78
|
end
|
63
79
|
|
64
80
|
desc "Push database and sync assets"
|
65
81
|
task :push do
|
66
82
|
invoke "db:push"
|
67
|
-
invoke "craft:assets:
|
83
|
+
invoke "craft:assets:push"
|
68
84
|
invoke "craft:assets:reindex"
|
69
85
|
end
|
70
86
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-craft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Dyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
|
-
rubygems_version: 3.
|
87
|
+
rubygems_version: 3.1.4
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Capistrano Craft - Easy deployment of Symfony 4 apps with Ruby over SSH
|