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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e4c1a3a48ddd73efb8b7d5d749284a878329068e4825b6166e182c5639a41c6
4
- data.tar.gz: 3c3eb108965fb684952e2323b3f7ec56886f9a5f248efa31dca5f033d1e405dc
3
+ metadata.gz: 5d6c03404782f89e7063e13165d4f360ecc69a0bcc1b969e6bcf0c46444a4e31
4
+ data.tar.gz: 6eb13cc9113b8e7e7fafb25ffdc687aaf9b16fb4e72ec2b98f353c9693b0d6f6
5
5
  SHA512:
6
- metadata.gz: 413bc972aceab75ae393f1b46467a2ef6658d11c74d7a7e6f7fd3d2c3c2a9f65185e1c2de59a20f616e40ed5437694a8b7974256f919e47d24e7c6c8594266c1
7
- data.tar.gz: 7820491e8fcf8c2be8192f1a213815fe1427de9d0f89f930c8fe517fe2530459848d4209a706ea4254ec817814834a464a20cb4bf839a8e8114166e35f62f38a
6
+ metadata.gz: 52d48ee4b855b35639969d97ec951e1b0c6319b568d6b1487c74cc15c89aa9754a03eaabc858f4c7cdd0f9892a1f9a64b0f469a7419a71d7927e5c23dbdeb02c
7
+ data.tar.gz: 84d341602d8c8e2b01504969cc6875b1cc5aed71630686db898f1a97f48148fae188960ca37aab23a8e53a347f181b75262eb07acb370209902de80ac8da8664
data/CHANGELOG.md ADDED
@@ -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
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-craft (0.2.1)
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.12.0)
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.5)
20
+ concurrent-ruby (1.1.9)
21
21
  diff-lcs (1.3)
22
- i18n (1.8.2)
22
+ i18n (1.8.10)
23
23
  concurrent-ruby (~> 1.0)
24
- net-scp (2.0.0)
25
- net-ssh (>= 2.6.5, < 6.0.0)
26
- net-ssh (5.2.0)
27
- rake (13.0.1)
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.20.0)
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.0.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", "storage"
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"
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Craft
3
- VERSION = "0.2.2"
3
+ VERSION = "0.3.3"
4
4
  end
5
5
  end
@@ -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
@@ -15,5 +15,6 @@ namespace :deploy do
15
15
  end
16
16
 
17
17
  after 'deploy:updated', 'deploy:compile_assets'
18
+ before 'deploy:published', 'craft:config:apply'
18
19
  after 'deploy:finished', 'craft:cache:clear'
19
- end
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.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: 2020-03-01 00:00:00.000000000 Z
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
- rubyforge_project:
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