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 +4 -4
- data/base/config/deploy/production.rb +14 -3
- data/base/config/deploy/staging.rb +11 -0
- data/base/public/.htaccess +12 -17
- data/templates/config/definitions.yml +4 -0
- data/wslave.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7beef53bb5664bdd4d7c010e64130366b45d8c51e5914735d20c2c7b7c78ad49
|
4
|
+
data.tar.gz: c217df1bb2f1a3c98cb2ec235009df760e1c21edbf144187c93f92c8a4bffd97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
163
|
-
if opts['deployer']['fqdn']['
|
164
|
-
db_data = db_data.gsub(/#{opts['deployer']['fqdn']['
|
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
|
|
data/base/public/.htaccess
CHANGED
@@ -1,24 +1,22 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
RewriteBase /
|
1
|
+
RewriteEngine On
|
2
|
+
RewriteBase /
|
4
3
|
|
5
|
-
|
6
|
-
|
4
|
+
# Open the subfoldered index when accessing the apex
|
5
|
+
RewriteRule ^$ wordpress/index.php [L]
|
7
6
|
|
8
|
-
|
9
|
-
|
10
|
-
|
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
|
-
|
13
|
-
|
14
|
-
|
11
|
+
# Skip real files and directories
|
12
|
+
RewriteCond %{REQUEST_FILENAME} !-f
|
13
|
+
RewriteCond %{REQUEST_FILENAME} !-d
|
15
14
|
|
16
|
-
|
17
|
-
|
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.
|
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.
|
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-
|
11
|
+
date: 2022-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|