wslave 0.3.7 → 0.3.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
  SHA256:
3
- metadata.gz: 839a62b6aacc39ae8b94d9754c086051fdf2a3e4d77b2204fd203bbfea03d0b7
4
- data.tar.gz: 76651142c622cf53d06ce8a752c5f9b510682c1367af08a635e311bd4c9cdc7e
3
+ metadata.gz: 7beef53bb5664bdd4d7c010e64130366b45d8c51e5914735d20c2c7b7c78ad49
4
+ data.tar.gz: c217df1bb2f1a3c98cb2ec235009df760e1c21edbf144187c93f92c8a4bffd97
5
5
  SHA512:
6
- metadata.gz: a9a20502e3ffd6698d6edf29cf7ea5097a5ac123c0abeaa285c42285387fad9603b7483a2b1c5eaaa0724b3e4440a6da1964e98f05d2aa81ad345be791d2022e
7
- data.tar.gz: 0cac7f0290283ccc147dd06c4975865cf26d1a9cec2a8c48210b96a63b166410f9d1a4ee027c6261dbefb3d968b85328eeee7776d6cc0558932137d0c8b92607
6
+ metadata.gz: ee80b70f838cfbf0747c3f671a06567f10904f420bfdbde1bfbf0eb8ff460a9e1b1c7d26b5f6e1ae35d92dfde21480f5063907357354ec06060e08212b482382
7
+ data.tar.gz: ba5543b2123617ac2cdbe19ac1e5a47a5ae1abb53b989229709eb241d67a978c9b73d0dd21731038c447ecc123a58ad0a99a2277ddf3104c2f23d2034cbb8aef
@@ -159,9 +159,9 @@ namespace :deploy do
159
159
  # replace instances of it with something that won't match
160
160
  db_data = db_data.gsub(/#{opts['deployer']['fqdn']['production']}/, anchor)
161
161
 
162
- # Set staging URL's to the anchor
163
- if opts['deployer']['fqdn']['staging'] != ''
164
- db_data = db_data.gsub(/#{opts['deployer']['fqdn']['staging']}/, anchor)
162
+ # Set production URL's to the anchor
163
+ if opts['deployer']['fqdn']['production'] != ''
164
+ db_data = db_data.gsub(/#{opts['deployer']['fqdn']['production']}/, anchor)
165
165
  end
166
166
 
167
167
  # Set localhost entries to the anchor
@@ -197,6 +197,16 @@ namespace :deploy do
197
197
  end
198
198
  end
199
199
 
200
+ desc 'Creates an additional symlink at the path specified in definitions.yml to current/public'
201
+ task :set_symlink do
202
+ on roles(:web) do
203
+ puts 'Setting symlink'
204
+ if (opts['deployer'].include?('symlink') && opts['deployer']['symlink'].include?('production'))
205
+ execute "ln -s #{deploy_path}/current/public #{opts['deployer']['root']}/#{opts['deployer']['symlink']['production']}"
206
+ end
207
+ end
208
+ end
209
+
200
210
  desc 'Perform special seed tasks required on intial seed'
201
211
  task :initial do
202
212
  on roles(:web) do
@@ -220,6 +230,7 @@ namespace :deploy do
220
230
  invoke('deploy:chikan')
221
231
  invoke('deploy:sage')
222
232
  invoke('deploy:set_permissions')
233
+ invoke('deploy:set_symlink')
223
234
  end
224
235
  end
225
236
 
@@ -197,6 +197,16 @@ namespace :deploy do
197
197
  end
198
198
  end
199
199
 
200
+ desc 'Creates an additional symlink at the path specified in definitions.yml to current/public'
201
+ task :set_symlink do
202
+ on roles(:web) do
203
+ puts 'Setting symlink'
204
+ if (opts['deployer'].include?('symlink') && opts['deployer']['symlink'].include?('staging'))
205
+ execute "ln -s #{deploy_path}/current/public #{opts['deployer']['root']}/#{opts['deployer']['symlink']['staging']}"
206
+ end
207
+ end
208
+ end
209
+
200
210
  desc 'Perform special seed tasks required on intial seed'
201
211
  task :initial do
202
212
  on roles(:web) do
@@ -220,6 +230,7 @@ namespace :deploy do
220
230
  invoke('deploy:chikan')
221
231
  invoke('deploy:sage')
222
232
  invoke('deploy:set_permissions')
233
+ invoke('deploy:set_symlink')
223
234
  end
224
235
  end
225
236
 
@@ -1,24 +1,22 @@
1
- <IfModule mod_rewrite.c>
2
- RewriteEngine On
3
- RewriteBase /
1
+ RewriteEngine On
2
+ RewriteBase /
4
3
 
5
- # Open the subfoldered index when accessing the apex
6
- RewriteRule ^$ wordpress/index.php [L]
4
+ # Open the subfoldered index when accessing the apex
5
+ RewriteRule ^$ wordpress/index.php [L]
7
6
 
8
- # Special forwarding to wp-admin
9
- RewriteRule ^wp-admin$ wp-admin/
10
- RewriteRule ^wp-admin/(.*) wordpress/wp-admin/$1 [R=301,L]
7
+ # Special forwarding to wp-admin
8
+ RewriteRule ^wp-admin$ wp-admin/
9
+ RewriteRule ^wp-admin/(.*) wordpress/wp-admin/$1 [R=301,L]
11
10
 
12
- # Skip real files and directories
13
- RewriteCond %{REQUEST_FILENAME} !-f
14
- RewriteCond %{REQUEST_FILENAME} !-d
11
+ # Skip real files and directories
12
+ RewriteCond %{REQUEST_FILENAME} !-f
13
+ RewriteCond %{REQUEST_FILENAME} !-d
15
14
 
16
- # Otherwise send it to WordPress
17
- RewriteRule .* wordpress/index.php [L]
15
+ # Otherwise send it to WordPress
16
+ RewriteRule .* wordpress/index.php [L]
18
17
 
19
18
  # BEGIN WordPress
20
19
  # END WordPress
21
- </IfModule>
22
20
 
23
21
  <FilesMatch ".+\.(blade\.php)$">
24
22
  <IfModule mod_authz_core.c>
@@ -31,6 +29,3 @@
31
29
  Deny from all
32
30
  </IfModule>
33
31
  </FilesMatch>
34
-
35
- php_value upload_max_filesize 0
36
- php_value post_max_size 0
@@ -12,6 +12,10 @@ deployer:
12
12
  branch:
13
13
  staging: master
14
14
  production: master
15
+ # Uncomment this to create a symlink to the deploy root's current/public at the specified location relative to the deploy root
16
+ # symlink:
17
+ # staging:
18
+ # production:
15
19
  app:
16
20
  name:
17
21
  repo:
data/wslave.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'wslave'
3
- s.version = '0.3.7'
3
+ s.version = '0.3.8'
4
4
  s.licenses = ['GPL-3.0', 'AGPL-3.0']
5
5
  s.summary = '"Word Slave" generates and controls a WordPress installation'
6
6
  s.description = 'Word Slave includes the wslave command and a control library to generate a ' \
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wslave
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rei Kagetsuki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-15 00:00:00.000000000 Z
11
+ date: 2022-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano