capistrano-craft 0.2.1 → 0.3.2
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/version.rb +1 -1
- data/lib/capistrano/tasks/craft.rake +12 -0
- data/lib/capistrano/tasks/deploy.rake +3 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6858e087061b28f3f258c3aca9e4c02151a9dc5abbec43550b741bea8a17d88
|
4
|
+
data.tar.gz: d52fc8037d539a80ff8c3017bc19ae6ba78c6cf466ce9ce2b0ede5f8a703c4e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32671a10fefbad2a8b6f5f688a2c1589ce9dba2018f78197395ed3bf8be8d0e7b8c191e4b688f3e4d06186824002276c449163135e550f237765cb4a73c2b298
|
7
|
+
data.tar.gz: 928ef8d683fa081e316f8398ede162c51a9b631269c7da2dc4fc683616d88e228960d04525cff45932156283f19655372e52e6ea001744eb763904cdfd3d3d5f
|
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.2
|
4
|
+
capistrano-craft (0.3.2)
|
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
|
@@ -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
|
@@ -8,12 +8,13 @@ namespace :deploy do
|
|
8
8
|
if fetch(:craft_compile_assets)
|
9
9
|
on release_roles(fetch(:craft_deploy_roles)) do
|
10
10
|
within release_path do
|
11
|
-
execute fetch(:craft_compile_assets_command)
|
11
|
+
execute "cd #{release_path} && #{fetch(:craft_compile_assets_command)}"
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
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
|
4
|
+
version: 0.3.2
|
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-26 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,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
84
|
- !ruby/object:Gem::Version
|
84
85
|
version: '0'
|
85
86
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
87
|
+
rubygems_version: 3.1.4
|
87
88
|
signing_key:
|
88
89
|
specification_version: 4
|
89
90
|
summary: Capistrano Craft - Easy deployment of Symfony 4 apps with Ruby over SSH
|