capistrano-laravel 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/laravel/version.rb +1 -1
- data/lib/capistrano/tasks/laravel.rake +26 -15
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a516f259143f927bbc800c8f33c0d98413bc47b
|
4
|
+
data.tar.gz: 9b9e0389129ec4d69f4b44ddfdedbdec55e48e52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bc6bd3dcb9e34426ea070b89fd5317f06618139daee311e98e383749b1d01d39546bf73369e0120c0402ba1fd115a3f9550f6be6ee6cc1060374b3f185f19d6
|
7
|
+
data.tar.gz: a448b3db0db1a49fdcd178411a46d631d4fbc8c6c5d576cfaff2747ec75c4675f646397c739202e38ba2b3f3ccfdbcf115d36001f516e19d9fdf3faccee1365f
|
@@ -31,12 +31,21 @@ namespace :load do
|
|
31
31
|
|
32
32
|
# Linked directories for a standard Laravel 4 application
|
33
33
|
set :laravel_4_linked_dirs, [
|
34
|
-
'app/storage'
|
34
|
+
'app/storage/public',
|
35
|
+
'app/storage/cache',
|
36
|
+
'app/storage/logs',
|
37
|
+
'app/storage/meta',
|
38
|
+
'app/storage/sessions',
|
39
|
+
'app/storage/views'
|
35
40
|
]
|
36
41
|
|
37
42
|
# Linked directories for a standard Laravel 5 application
|
38
43
|
set :laravel_5_linked_dirs, [
|
39
|
-
'storage'
|
44
|
+
'storage/app',
|
45
|
+
'storage/framework/cache',
|
46
|
+
'storage/framework/sessions',
|
47
|
+
'storage/framework/views',
|
48
|
+
'storage/logs'
|
40
49
|
]
|
41
50
|
|
42
51
|
# Ensure the paths in :file_permissions_paths exist?
|
@@ -97,10 +106,8 @@ namespace :laravel do
|
|
97
106
|
laravel_acl_paths = fetch(:laravel_4_acl_paths)
|
98
107
|
end
|
99
108
|
|
100
|
-
|
101
|
-
|
102
|
-
set :file_permissions_users, fetch(:file_permissions_users, []).push(fetch(:laravel_server_user)).uniq
|
103
|
-
end
|
109
|
+
set :file_permissions_paths, fetch(:file_permissions_paths, []).push(*laravel_acl_paths).uniq
|
110
|
+
set :file_permissions_users, fetch(:file_permissions_users, []).push(fetch(:laravel_server_user)).uniq
|
104
111
|
end
|
105
112
|
|
106
113
|
desc 'Ensure that linked dirs exist.'
|
@@ -109,7 +116,7 @@ namespace :laravel do
|
|
109
116
|
|
110
117
|
on roles fetch(:laravel_roles) do
|
111
118
|
fetch(:linked_dirs).each do |path|
|
112
|
-
within
|
119
|
+
within shared_path do
|
113
120
|
execute :mkdir, '-p', path
|
114
121
|
end
|
115
122
|
end
|
@@ -213,12 +220,16 @@ namespace :laravel do
|
|
213
220
|
set(:laravel_artisan_flags, laravel_artisan_flags)
|
214
221
|
end
|
215
222
|
|
216
|
-
before 'deploy:starting',
|
217
|
-
|
218
|
-
|
219
|
-
after '
|
220
|
-
after '
|
221
|
-
|
222
|
-
|
223
|
-
|
223
|
+
before 'deploy:starting', 'laravel:resolve_linked_dirs'
|
224
|
+
after 'deploy:starting', 'laravel:ensure_linked_dirs_exist'
|
225
|
+
before 'composer:run', 'laravel:upload_dotenv_file'
|
226
|
+
after 'composer:run', 'laravel:storage_link'
|
227
|
+
after 'composer:run', 'laravel:optimize'
|
228
|
+
|
229
|
+
# Only include ACL tasks if enabled
|
230
|
+
if fetch(:laravel_set_acl_paths)
|
231
|
+
before 'deploy:starting', 'laravel:resolve_acl_paths'
|
232
|
+
before 'deploy:set_permissions:acl', 'laravel:ensure_acl_paths_exist'
|
233
|
+
before 'deploy:publishing', 'deploy:set_permissions:acl'
|
234
|
+
end
|
224
235
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-laravel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Mitchell
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-10-
|
12
|
+
date: 2016-10-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|