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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e4c1a3a48ddd73efb8b7d5d749284a878329068e4825b6166e182c5639a41c6
4
- data.tar.gz: 3c3eb108965fb684952e2323b3f7ec56886f9a5f248efa31dca5f033d1e405dc
3
+ metadata.gz: 8bd49dc866da5b1f1b81620fff6c77d952e8d5067f3f6bc1268026eb87016f07
4
+ data.tar.gz: 29e36ef83ca0703c993e80f48051a9e8b5fcdf289881122f96f2ad28b5464b7c
5
5
  SHA512:
6
- metadata.gz: 413bc972aceab75ae393f1b46467a2ef6658d11c74d7a7e6f7fd3d2c3c2a9f65185e1c2de59a20f616e40ed5437694a8b7974256f919e47d24e7c6c8594266c1
7
- data.tar.gz: 7820491e8fcf8c2be8192f1a213815fe1427de9d0f89f930c8fe517fe2530459848d4209a706ea4254ec817814834a464a20cb4bf839a8e8114166e35f62f38a
6
+ metadata.gz: 75b24eee818dd00358fe1cdf9694167ccaa1827b0281e2cfdae67b6e0ee3f01a51a46d15dd290d722cbd98d30ec5cabafac7bd44b7836e5bd73abe0ce75276a6
7
+ data.tar.gz: 33313144755a227f0940fe9715dcc1c6548176630291e78a0739ed88413c3aed86fd906bcb4b19cf1dd78d67f80bf6c9862d7f103480c8bfc121aa3029ab5138
@@ -0,0 +1,6 @@
1
+ # Release Notes for Capistrano Craft
2
+
3
+ ## 0.3.0 - 2020-08-13
4
+
5
+ - Better compatibility with Craft 3.5
6
+ - Project config automatically applied after deployment. A backup command is executed first as an insurance against database corruption
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-craft (0.2.1)
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.0)
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.5)
20
+ concurrent-ruby (1.1.6)
21
21
  diff-lcs (1.3)
22
- i18n (1.8.2)
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.20.0)
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
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Craft
3
- VERSION = "0.2.2"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -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
@@ -15,5 +15,6 @@ namespace :deploy do
15
15
  end
16
16
 
17
17
  after 'deploy:updated', 'deploy:compile_assets'
18
+ after 'deploy:finished', 'craft:config:apply'
18
19
  after 'deploy:finished', 'craft:cache:clear'
19
20
  end
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.2.2
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-03-01 00:00:00.000000000 Z
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
- rubyforge_project:
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