forkcms_deploy 4.0.0 → 4.0.1

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
  SHA1:
3
- metadata.gz: 4b8f17451374927d94a03a451fb79ae1b5d57558
4
- data.tar.gz: 58825c254d15bc8b221b9907c0ef496ac601b46f
3
+ metadata.gz: 0b61b2968a3b1b8a7b245d3b445c850f20877e82
4
+ data.tar.gz: eb84d1aac4482769c058180316e58b836151bf92
5
5
  SHA512:
6
- metadata.gz: c2f4d4345e3e16da7c74206c6926a0475d6b4953795368bba073669979d681f8437b6f483c651c23f679a0fae90c1527e6318a19933c80b769734278ae5a2374
7
- data.tar.gz: b458d7e3670bc091449d967e52acd4eaa15c67d7762c4cb8677b042ef8d104f767f0b66ad9924daae1c7b256bb80f2b1e6105bf2192d569118bb555ecdc67a75
6
+ metadata.gz: e01daca4cc34c9db7f667fbc3590872ad7952d6d2a302eaab65c7e6fc072bef71346b334355ee744854c596f5ff5a685f6feea9317984f024225eb43f998bd42
7
+ data.tar.gz: e1b29aef9d51d0991e77ca82bdb95c2a08896b6bbaf637b9e6274f32d79c709dca098451c92c8817e9a521b364e577e9e1f31a295c53764e355105a963d3b56b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.0
1
+ 4.0.1
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: forkcms_deploy 4.0.0 ruby lib
5
+ # stub: forkcms_deploy 4.0.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "forkcms_deploy"
9
- s.version = "4.0.0"
9
+ s.version = "4.0.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Tijs Verkoyen", "Jan De Poorter", "Sam Tubbax", "Wouter Sioen"]
14
- s.date = "2016-06-14"
14
+ s.date = "2016-08-24"
15
15
  s.description = "Deployment for ForkCMS with Capistrano"
16
16
  s.email = "info@sumocoders.be"
17
17
  s.extra_rdoc_files = [
@@ -1,32 +1,9 @@
1
- require "forkcms_deploy/forkcms_3"
1
+ require "forkcms_deploy/forkcms_3.4"
2
2
  configuration = Capistrano::Configuration.respond_to?(:instance) ? Capistrano::Configuration.instance(:must_exist) : Capistrano.configuration(:must_exist)
3
3
 
4
4
  configuration.load do
5
5
  set :shared_children, %w(files config install)
6
6
 
7
- after 'deploy:update_code' do
8
- composer.install_vendors
9
- end
10
-
11
- # composer specific tasks
12
- namespace :composer do
13
- desc 'Install the vendors'
14
- task :install_vendors do
15
- composer.install_composer
16
- run %{
17
- cd #{latest_release} &&
18
- php -d 'suhosin.executor.include.whitelist = phar' -d 'date.timezone = UTC' #{shared_path}/composer.phar install -o
19
- }
20
- end
21
-
22
- desc 'Install composer'
23
- task :install_composer do
24
- run %{
25
- if [ ! -e #{shared_path}/composer.phar ]; then cd #{shared_path}; curl -ks https://getcomposer.org/installer | php -d 'suhosin.executor.include.whitelist = phar' -d 'date.timezone = UTC'; fi
26
- }
27
- end
28
- end
29
-
30
7
  # Fork CMS specific tasks
31
8
  namespace :forkcms do
32
9
  desc 'Link the config files'
@@ -1,48 +1,9 @@
1
- require "forkcms_deploy/forkcms_3"
1
+ require "forkcms_deploy/forkcms_3.5"
2
2
  configuration = Capistrano::Configuration.respond_to?(:instance) ? Capistrano::Configuration.instance(:must_exist) : Capistrano.configuration(:must_exist)
3
3
 
4
4
  configuration.load do
5
- set :shared_children, %w(files config install)
6
-
7
- after 'deploy:update_code' do
8
- composer.install_vendors
9
- end
10
-
11
- # composer specific tasks
12
- namespace :composer do
13
- desc 'Install the vendors'
14
- task :install_vendors do
15
- composer.install_composer
16
- run %{
17
- cd #{latest_release} &&
18
- php -d 'suhosin.executor.include.whitelist = phar' -d 'date.timezone = UTC' #{shared_path}/composer.phar install -o
19
- }
20
- end
21
-
22
- desc 'Install composer'
23
- task :install_composer do
24
- run %{
25
- if [ ! -e #{shared_path}/composer.phar ]; then cd #{shared_path}; curl -ks https://getcomposer.org/installer | php -d 'suhosin.executor.include.whitelist = phar' -d 'date.timezone = UTC'; fi
26
- }
27
- end
28
- end
29
-
30
5
  # Fork CMS specific tasks
31
6
  namespace :forkcms do
32
- desc 'Link the config files'
33
- task :link_configs do
34
-
35
- # change the path to current_path
36
- run "if [ -f #{shared_path}/config/parameters.yml ]; then sed -i 's/#{version_dir}\\/[0-9]*/#{current_dir}/' #{shared_path}/config/parameters.yml; fi"
37
- run "if [ ! -f #{shared_path}/install/installed.txt ]; then touch #{shared_path}/install/installed.txt; fi"
38
-
39
- # symlink the parameters
40
- run %{
41
- ln -sf #{shared_path}/config/parameters.yml #{release_path}/app/config/parameters.yml &&
42
- ln -sf #{shared_path}/install/installed.txt #{release_path}/src/Install/Cache/installed.txt
43
- }
44
- end
45
-
46
7
  desc 'Clear the frontend and backend cache-folders'
47
8
  task :clear_cached do
48
9
  # remove frontend cached data
@@ -1,32 +1,7 @@
1
- require "forkcms_deploy/forkcms_3"
1
+ require "forkcms_deploy/forkcms_3.7"
2
2
  configuration = Capistrano::Configuration.respond_to?(:instance) ? Capistrano::Configuration.instance(:must_exist) : Capistrano.configuration(:must_exist)
3
3
 
4
4
  configuration.load do
5
- set :shared_children, %w(files config install)
6
-
7
- after 'deploy:update_code' do
8
- composer.install_vendors
9
- end
10
-
11
- # composer specific tasks
12
- namespace :composer do
13
- desc 'Install the vendors'
14
- task :install_vendors do
15
- composer.install_composer
16
- run %{
17
- cd #{latest_release} &&
18
- php -d 'suhosin.executor.include.whitelist = phar' -d 'date.timezone = UTC' #{shared_path}/composer.phar install -o
19
- }
20
- end
21
-
22
- desc 'Install composer'
23
- task :install_composer do
24
- run %{
25
- if [ ! -e #{shared_path}/composer.phar ]; then cd #{shared_path}; curl -ks https://getcomposer.org/installer | php -d 'suhosin.executor.include.whitelist = phar' -d 'date.timezone = UTC'; fi
26
- }
27
- end
28
- end
29
-
30
5
  # Fork CMS specific tasks
31
6
  namespace :forkcms do
32
7
  desc 'Link the config files'
@@ -40,47 +15,5 @@ configuration.load do
40
15
  ln -sf #{shared_path}/config/parameters.yml #{release_path}/app/config/parameters.yml
41
16
  }
42
17
  end
43
-
44
- desc 'Clear the frontend and backend cache-folders'
45
- task :clear_cached do
46
- # remove frontend cached data
47
- run %{
48
- rm -rf #{current_path}/src/Frontend/Cache/CachedTemplates/* &&
49
- rm -rf #{current_path}/src/Frontend/Cache/CompiledTemplates/* &&
50
- rm -rf #{current_path}/src/Frontend/Cache/Locale/* &&
51
- rm -rf #{current_path}/src/Frontend/Cache/MinifiedCss/* &&
52
- rm -rf #{current_path}/src/Frontend/Cache/MinifiedJs/* &&
53
- rm -rf #{current_path}/src/Frontend/Cache/Navigation/* &&
54
- rm -rf #{current_path}/src/Frontend/Cache/Search/*
55
- }
56
-
57
- # remove backend cached data
58
- run %{
59
- rm -rf #{current_path}/src/Backend/Cache/Analytics/* &&
60
- rm -rf #{current_path}/src/Backend/Cache/Cronjobs/* &&
61
- rm -rf #{current_path}/src/Backend/Cache/Locale/* &&
62
- rm -rf #{current_path}/src/Backend/Cache/Mailmotor/* &&
63
- rm -rf #{current_path}/src/Backend/Cache/MinifiedCss/* &&
64
- rm -rf #{current_path}/src/Backend/Cache/MinifiedJs/* &&
65
- rm -rf #{current_path}/src/Backend/Cache/CompiledTemplates/*
66
- }
67
- end
68
-
69
- desc 'Create needed symlinks'
70
- task :link_files do
71
- # get the list of folders in /frontend/files
72
- folders = capture("ls -1 #{release_path}/src/Frontend/Files").split(/\r?\n/)
73
-
74
- # loop the folders
75
- folders.each do |folder|
76
- # copy them to the shared path, remove them from the release and symlink them
77
- run %{
78
- mkdir -p #{shared_path}/files/#{folder} &&
79
- cp -r #{release_path}/src/Frontend/Files/#{folder} #{shared_path}/files/ &&
80
- rm -rf #{release_path}/src/Frontend/Files/#{folder} &&
81
- ln -s #{shared_path}/files/#{folder} #{release_path}/src/Frontend/Files/#{folder}
82
- }
83
- end
84
- end
85
18
  end
86
19
  end
@@ -21,6 +21,14 @@ configuration.load do
21
21
  migrations.execute
22
22
  end
23
23
 
24
+ after "deploy:create_symlink" do
25
+ opcode.clear
26
+ end
27
+
28
+ after "sumodev:redirect:put" do
29
+ opcode.clear
30
+ end
31
+
24
32
  # Fork CMS specific tasks
25
33
  namespace :forkcms do
26
34
  desc 'Clear the frontend and backend cache-folders'
@@ -240,4 +248,14 @@ configuration.load do
240
248
  run "mysql --default-character-set='utf8' --host=#{yaml['parameters']['database.host']} --port=#{yaml['parameters']['database.port']} --user=#{yaml['parameters']['database.user']} --password=#{yaml['parameters']['database.password']} #{yaml['parameters']['database.name']} < #{mysql_update_file}"
241
249
  end
242
250
  end
251
+
252
+ namespace :opcode do
253
+ desc "Clears the opcode cache"
254
+ task :clear do
255
+ run "touch #{document_root}/php-opcache-reset.php"
256
+ run "echo '<?php opcache_reset()' > #{document_root}/php-opcache-reset.php"
257
+ run %{ curl #{url}/php-opcache-reset.php }
258
+ run "rm #{document_root}/php-opcache-reset.php"
259
+ end
260
+ end
243
261
  end
@@ -1,86 +1 @@
1
- require "forkcms_deploy/forkcms_3"
2
- configuration = Capistrano::Configuration.respond_to?(:instance) ? Capistrano::Configuration.instance(:must_exist) : Capistrano.configuration(:must_exist)
3
-
4
- configuration.load do
5
- set :shared_children, %w(files config install)
6
-
7
- after 'deploy:update_code' do
8
- composer.install_vendors
9
- end
10
-
11
- # composer specific tasks
12
- namespace :composer do
13
- desc 'Install the vendors'
14
- task :install_vendors do
15
- composer.install_composer
16
- run %{
17
- cd #{latest_release} &&
18
- php -d 'suhosin.executor.include.whitelist = phar' -d 'date.timezone = UTC' #{shared_path}/composer.phar install -o
19
- }
20
- end
21
-
22
- desc 'Install composer'
23
- task :install_composer do
24
- run %{
25
- if [ ! -e #{shared_path}/composer.phar ]; then cd #{shared_path}; curl -ks https://getcomposer.org/installer | php -d 'suhosin.executor.include.whitelist = phar' -d 'date.timezone = UTC'; fi
26
- }
27
- end
28
- end
29
-
30
- # Fork CMS specific tasks
31
- namespace :forkcms do
32
- desc 'Link the config files'
33
- task :link_configs do
34
-
35
- # change the path to current_path
36
- run "if [ -f #{shared_path}/config/parameters.yml ]; then sed -i 's/#{version_dir}\\/[0-9]*/#{current_dir}/' #{shared_path}/config/parameters.yml; fi"
37
-
38
- # symlink the parameters
39
- run %{
40
- ln -sf #{shared_path}/config/parameters.yml #{release_path}/app/config/parameters.yml
41
- }
42
- end
43
-
44
- desc 'Clear the frontend and backend cache-folders'
45
- task :clear_cached do
46
- # remove frontend cached data
47
- run %{
48
- rm -rf #{current_path}/src/Frontend/Cache/CachedTemplates/* &&
49
- rm -rf #{current_path}/src/Frontend/Cache/CompiledTemplates/* &&
50
- rm -rf #{current_path}/src/Frontend/Cache/Locale/* &&
51
- rm -rf #{current_path}/src/Frontend/Cache/MinifiedCss/* &&
52
- rm -rf #{current_path}/src/Frontend/Cache/MinifiedJs/* &&
53
- rm -rf #{current_path}/src/Frontend/Cache/Navigation/* &&
54
- rm -rf #{current_path}/src/Frontend/Cache/Search/*
55
- }
56
-
57
- # remove backend cached data
58
- run %{
59
- rm -rf #{current_path}/src/Backend/Cache/Analytics/* &&
60
- rm -rf #{current_path}/src/Backend/Cache/Cronjobs/* &&
61
- rm -rf #{current_path}/src/Backend/Cache/Locale/* &&
62
- rm -rf #{current_path}/src/Backend/Cache/Mailmotor/* &&
63
- rm -rf #{current_path}/src/Backend/Cache/MinifiedCss/* &&
64
- rm -rf #{current_path}/src/Backend/Cache/MinifiedJs/* &&
65
- rm -rf #{current_path}/src/Backend/Cache/CompiledTemplates/*
66
- }
67
- end
68
-
69
- desc 'Create needed symlinks'
70
- task :link_files do
71
- # get the list of folders in /frontend/files
72
- folders = capture("ls -1 #{release_path}/src/Frontend/Files").split(/\r?\n/)
73
-
74
- # loop the folders
75
- folders.each do |folder|
76
- # copy them to the shared path, remove them from the release and symlink them
77
- run %{
78
- mkdir -p #{shared_path}/files/#{folder} &&
79
- cp -r #{release_path}/src/Frontend/Files/#{folder} #{shared_path}/files/ &&
80
- rm -rf #{release_path}/src/Frontend/Files/#{folder} &&
81
- ln -s #{shared_path}/files/#{folder} #{release_path}/src/Frontend/Files/#{folder}
82
- }
83
- end
84
- end
85
- end
86
- end
1
+ require "forkcms_deploy/forkcms_3.8"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forkcms_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tijs Verkoyen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-06-14 00:00:00.000000000 Z
14
+ date: 2016-08-24 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: capistrano