capistrano-craft 0.2.2 → 0.3.0
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/Gemfile.lock +5 -5
- data/README.md +6 -0
- data/lib/capistrano/craft/version.rb +1 -1
- data/lib/capistrano/tasks/craft.rake +10 -0
- data/lib/capistrano/tasks/deploy.rake +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bd49dc866da5b1f1b81620fff6c77d952e8d5067f3f6bc1268026eb87016f07
|
4
|
+
data.tar.gz: 29e36ef83ca0703c993e80f48051a9e8b5fcdf289881122f96f2ad28b5464b7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75b24eee818dd00358fe1cdf9694167ccaa1827b0281e2cfdae67b6e0ee3f01a51a46d15dd290d722cbd98d30ec5cabafac7bd44b7836e5bd73abe0ce75276a6
|
7
|
+
data.tar.gz: 33313144755a227f0940fe9715dcc1c6548176630291e78a0739ed88413c3aed86fd906bcb4b19cf1dd78d67f80bf6c9862d7f103480c8bfc121aa3029ab5138
|
data/CHANGELOG.md
ADDED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
capistrano-craft (0.
|
4
|
+
capistrano-craft (0.3.0)
|
5
5
|
capistrano (~> 3.1)
|
6
6
|
capistrano-composer (~> 0.0.6)
|
7
7
|
|
@@ -10,16 +10,16 @@ GEM
|
|
10
10
|
specs:
|
11
11
|
airbrussh (1.4.0)
|
12
12
|
sshkit (>= 1.6.1, != 1.7.0)
|
13
|
-
capistrano (3.12.
|
13
|
+
capistrano (3.12.1)
|
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.6)
|
21
21
|
diff-lcs (1.3)
|
22
|
-
i18n (1.8.
|
22
|
+
i18n (1.8.5)
|
23
23
|
concurrent-ruby (~> 1.0)
|
24
24
|
net-scp (2.0.0)
|
25
25
|
net-ssh (>= 2.6.5, < 6.0.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.
|
41
|
+
sshkit (1.21.0)
|
42
42
|
net-scp (>= 1.1.2)
|
43
43
|
net-ssh (>= 2.8.0)
|
44
44
|
|
data/README.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
This gem automates the deployment of Craft CMS apps with Capistrano. It will automatically detect local and remote environment settings to make synchronizing of database and assets straightforward.
|
4
4
|
|
5
|
+
- [x] Support for asset and database synchronization
|
6
|
+
- [x] Support for PostgreSQL databases
|
7
|
+
- [ ] Support for MySQL databases
|
8
|
+
|
5
9
|
## Installation
|
6
10
|
|
7
11
|
Add this line to your application's Gemfile:
|
@@ -16,6 +20,8 @@ Or install system wide:
|
|
16
20
|
|
17
21
|
## Usage
|
18
22
|
|
23
|
+
For a beginners guide to deploying your site (especially useful if you have little to no experience with Ruby) please see this blog article: https://cdyer.co.uk/blog/deploying-craft-cms-to-a-vps-server-with-capistrano
|
24
|
+
|
19
25
|
The setting you will likely need to customize is:
|
20
26
|
```
|
21
27
|
# This should be your command to compile assets for production
|
@@ -26,6 +26,16 @@ namespace :craft do
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
+
namespace :config do
|
30
|
+
desc "Apply the project config to database after running Craft backup command"
|
31
|
+
task :apply do
|
32
|
+
on release_roles(fetch(:craft_deploy_roles)) do
|
33
|
+
craft_console "backup/db"
|
34
|
+
craft_console "project-config/apply"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
29
39
|
namespace :assets do
|
30
40
|
desc "Synchronise assets between local and remote server"
|
31
41
|
task :sync do
|
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.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Dyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -47,6 +47,7 @@ extra_rdoc_files: []
|
|
47
47
|
files:
|
48
48
|
- ".gitignore"
|
49
49
|
- ".rspec"
|
50
|
+
- CHANGELOG.md
|
50
51
|
- CODE_OF_CONDUCT.md
|
51
52
|
- Gemfile
|
52
53
|
- Gemfile.lock
|
@@ -83,8 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
84
|
- !ruby/object:Gem::Version
|
84
85
|
version: '0'
|
85
86
|
requirements: []
|
86
|
-
|
87
|
-
rubygems_version: 2.7.6.2
|
87
|
+
rubygems_version: 3.0.3
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Capistrano Craft - Easy deployment of Symfony 4 apps with Ruby over SSH
|