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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a8ab7cacc58215380b5710b6bb5cd674914092e
4
- data.tar.gz: a22020604238facd9c1235131746c443551b82a8
3
+ metadata.gz: 1a516f259143f927bbc800c8f33c0d98413bc47b
4
+ data.tar.gz: 9b9e0389129ec4d69f4b44ddfdedbdec55e48e52
5
5
  SHA512:
6
- metadata.gz: d894c6310923a00d8c92e56a666851bd2b059cd5df3814ad3c06bb7b4e550dcf91cc2854de7d6e5065c85d14f7a8c509306a8643278d9e501fcdff16c4e25267
7
- data.tar.gz: 0c7c8fe551603d27d8ec79e67b729018d54b2f966a9dfd05bf44ca1216fbfc8d7b510f9d53b2a53a06285badb297d5c8d70b7321415542def1ded7e02a0e0128
6
+ metadata.gz: 4bc6bd3dcb9e34426ea070b89fd5317f06618139daee311e98e383749b1d01d39546bf73369e0120c0402ba1fd115a3f9550f6be6ee6cc1060374b3f185f19d6
7
+ data.tar.gz: a448b3db0db1a49fdcd178411a46d631d4fbc8c6c5d576cfaff2747ec75c4675f646397c739202e38ba2b3f3ccfdbcf115d36001f516e19d9fdf3faccee1365f
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Laravel
3
- VERSION = "1.0.1"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -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
- if fetch(:laravel_set_acl_paths)
101
- set :file_permissions_paths, fetch(:file_permissions_paths, []).push(*laravel_acl_paths).uniq
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 release_path do
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', 'laravel:resolve_linked_dirs'
217
- before 'deploy:starting', 'laravel:resolve_acl_paths'
218
- after 'deploy:starting', 'laravel:ensure_linked_dirs_exist'
219
- after 'deploy:starting', 'laravel:ensure_acl_paths_exist'
220
- after 'deploy:updating', 'deploy:set_permissions:acl'
221
- before 'composer:run', 'laravel:upload_dotenv_file'
222
- after 'composer:run', 'laravel:storage_link'
223
- after 'composer:run', 'laravel:optimize'
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.1
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-14 00:00:00.000000000 Z
12
+ date: 2016-10-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano