capistrano-craft 0.2.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +10 -10
- data/README.md +6 -0
- data/lib/capistrano/craft/defaults.rb +6 -1
- data/lib/capistrano/craft/version.rb +1 -1
- data/lib/capistrano/tasks/craft.rake +12 -0
- data/lib/capistrano/tasks/deploy.rake +2 -1
- 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: 5d6c03404782f89e7063e13165d4f360ecc69a0bcc1b969e6bcf0c46444a4e31
|
4
|
+
data.tar.gz: 6eb13cc9113b8e7e7fafb25ffdc687aaf9b16fb4e72ec2b98f353c9693b0d6f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52d48ee4b855b35639969d97ec951e1b0c6319b568d6b1487c74cc15c89aa9754a03eaabc858f4c7cdd0f9892a1f9a64b0f469a7419a71d7927e5c23dbdeb02c
|
7
|
+
data.tar.gz: 84d341602d8c8e2b01504969cc6875b1cc5aed71630686db898f1a97f48148fae188960ca37aab23a8e53a347f181b75262eb07acb370209902de80ac8da8664
|
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.3)
|
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.
|
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
|
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
|
@@ -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"
|
@@ -26,6 +26,18 @@ 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 "migrate/all --no-content"
|
35
|
+
craft_console "project-config/apply"
|
36
|
+
craft_console "migrate"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
29
41
|
namespace :assets do
|
30
42
|
desc "Synchronise assets between local and remote server"
|
31
43
|
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.3
|
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-07-27 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.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
|