alcapon 0.4.7 → 0.4.8

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
  SHA512:
3
- data.tar.gz: 5b32b65442d04520c04fbf9fe0e8de485e2e9fadf849ca77c0aa574f6b408021f677fd6ed7c8fa4234040d0b93913e243039534997456f41ae9c99f885495850
4
- metadata.gz: 7d716301517f09d650c0f1d585bd33e687b87b18de8880c749aef5ceae18cf567c02de501fe320b9eb439b44b651570a74c7f290e81772c137f616bd3a5e319b
3
+ metadata.gz: c4b3c4e5bc5f32e434c050a7ba53bc2de7df3ccade3e1d13d1182fa997723ef35f525d36a097bd29db297795b5a9e12c2434effba6a997a7f95959f2f2af13b9
4
+ data.tar.gz: b8f088f477376fddf6be0fde02091929977e169d96729738cb5020c6f1dffc6a17f09c19291d4abc5518b801fd8a13ce931d9ab20f205cd95dceea9602ebf1cf
5
5
  SHA1:
6
- data.tar.gz: 76de8e19717fc3358b4cba3a4366c9b8e07cd024
7
- metadata.gz: 8054168a93ce72534b412c70307fb982fe3d12fe
6
+ metadata.gz: 39a640f5e7f942afefdb1c349db664d3a01acb37
7
+ data.tar.gz: db948e03e598902cac8a019fdacbc8011a611c9f
@@ -4,7 +4,7 @@ require 'optparse'
4
4
  require 'fileutils'
5
5
 
6
6
  ezpublish_version = nil
7
- alcapon_version = "0.4.7"
7
+ alcapon_version = "0.4.8"
8
8
 
9
9
  OptionParser.new do |opts|
10
10
  opts.banner = "Usage: #{File.basename($0)} [path]"
@@ -129,6 +129,7 @@ files = {
129
129
  # By default, this is the user as the one used to connect via SSH
130
130
  set :webserver_user, :user
131
131
  set :webserver_group, :user
132
+ set :php_user, :user
132
133
 
133
134
  # If true, will always turn your webserver offline
134
135
  # Requires a specific rewrite rule (see documentation)
@@ -170,6 +171,7 @@ files = {
170
171
 
171
172
  # Set this to true if you want capez:settings:configure to be executed every time
172
173
  # the application is deployed
174
+ # IMPORTANT: requires that the database is already created before it is run
173
175
  set :ezp5_regenerate_config, false
174
176
 
175
177
  # Which autoloads to generate. By default, regenerates extensions and
@@ -212,6 +214,7 @@ files = {
212
214
  # This is used for permissions related tasks
213
215
  #set :webserver_user, :user
214
216
  #set :webserver_group, :user
217
+ #set :php_user, :user
215
218
  FILE
216
219
 
217
220
  "#{alcapon_path}/config/deploy/production.rb" => unindent(<<-FILE)
@@ -226,6 +229,7 @@ files = {
226
229
  # This is used for permissions related tasks
227
230
  #set :webserver_user, :user
228
231
  #set :webserver_group, :user
232
+ #set :php_user, :user
229
233
 
230
234
  #set :file_changes, {
231
235
  # 'settings/override/site.ini.append.dist' => {
@@ -380,7 +380,7 @@ namespace :ezpublish do
380
380
  puts( "\n--> eZ Publish autoloads " )
381
381
  autoload_list.each { |autoload|
382
382
  print_dotted( "#{autoload}" )
383
- capture( "cd #{latest_release}/#{ezp_legacy_path} && sudo -u #{webserver_user} php bin/php/ezpgenerateautoloads.php --#{autoload}" )
383
+ capture( "cd #{latest_release}/#{ezp_legacy_path} && sudo -u #{fetch(:php_user,user)} php bin/php/ezpgenerateautoloads.php --#{autoload}" )
384
384
  capez_puts_done
385
385
  }
386
386
  end
@@ -26,7 +26,7 @@ namespace :ezpublish do
26
26
  puts( "\n--> Clearing caches #{'with --purge'.red if cache_purge}" )
27
27
  cache_list.each { |cache_tag|
28
28
  print_dotted( "#{cache_tag}" )
29
- capture "cd #{current_path}/#{ezp_legacy_path} && sudo -u #{webserver_user} php bin/php/ezcache.php --clear-tag=#{cache_tag}#{' --purge' if cache_purge}"
29
+ capture "cd #{current_path}/#{ezp_legacy_path} && sudo -u #{fetch(:php_user,user)} php bin/php/ezcache.php --clear-tag=#{cache_tag}#{' --purge' if cache_purge}"
30
30
  capez_puts_done
31
31
  }
32
32
  end
@@ -14,9 +14,9 @@ after "deploy:finalize_update" do
14
14
  ezpublish.var.link
15
15
  ezpublish.autoloads.generate
16
16
  ezpublish.settings.deploy
17
+ ezpublish.assets.install
17
18
  if ( fetch( :ezp5_regenerate_config, false ) )
18
19
  ezpublish.settings.configure
19
20
  end
20
- ezpublish.assets.install
21
21
  end
22
22
 
@@ -12,7 +12,7 @@ namespace :ezpublish do
12
12
  puts( "\n--> Clearing caches #{'with --purge'.red if cache_purge}" )
13
13
  cache_list.each { |cache_tag|
14
14
  print_dotted( "#{cache_tag}" )
15
- capture "cd #{current_path}/#{ezp_legacy_path} && sudo -u #{webserver_group} php bin/php/ezcache.php --clear-tag=#{cache_tag}#{' --purge' if cache_purge}"
15
+ capture "cd #{current_path}/#{ezp_legacy_path} && sudo -u #{fetch(:php_user,user)} php bin/php/ezcache.php --clear-tag=#{cache_tag}#{' --purge' if cache_purge}"
16
16
  capez_puts_done
17
17
  }
18
18
  end
@@ -24,8 +24,8 @@ namespace :ezpublish do
24
24
  DESC
25
25
  task :install do
26
26
  print_dotted( "\n--> Generating web assets in #{fetch('ezp5_assets_path','web')}" )
27
- capture( "cd #{latest_release} && sudo -u #{webserver_group} php ezpublish/console assets:install --symlink #{fetch('ezp5_assets_path','web')}" )
28
- capture( "cd #{latest_release} && sudo -u #{webserver_group} php ezpublish/console ezpublish:legacy:assets_install --symlink #{fetch('ezp5_assets_path','web')}" )
27
+ capture( "cd #{latest_release} && sudo -u #{fetch(:php_user,user)} php ezpublish/console assets:install --symlink #{fetch('ezp5_assets_path','web')}" )
28
+ capture( "cd #{latest_release} && sudo -u #{fetch(:php_user,user)} php ezpublish/console ezpublish:legacy:assets_install --symlink #{fetch('ezp5_assets_path','web')}" )
29
29
  capez_puts_done
30
30
  end
31
31
  end
@@ -37,7 +37,7 @@ namespace :ezpublish do
37
37
  task :configure do
38
38
  print_dotted( "\n--> Generating ezp5 configuration files from ezp4 ones" )
39
39
  if( fetch('ezp5_siteaccess_groupname',false) != false && fetch('ezp5_admin_siteaccess',false) != false )
40
- capture( "cd #{latest_release} && sudo -u #{webserver_group} php ezpublish/console ezpublish:configure --env=#{fetch('ezp5_env','prod')} #{ezp5_siteaccess_groupname} #{ezp5_admin_siteaccess}" )
40
+ capture( "cd #{latest_release} && sudo -u #{fetch(:php_user,user)} php ezpublish/console ezpublish:configure --env=#{fetch('ezp5_env','prod')} #{ezp5_siteaccess_groupname} #{ezp5_admin_siteaccess}" )
41
41
  else
42
42
  abort( "Since version 0.4.3, you need to set ezp5_siteaccess_groupname & ezp5_admin_siteaccess".red )
43
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alcapon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Lafon