yiifony 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/yiifony.rb +9 -2
- data/yiifony.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/lib/yiifony.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'yaml'
|
2
2
|
|
3
3
|
# Dirs that need to remain the same between deploys (shared dirs)
|
4
|
-
set :shared_children, %w(
|
4
|
+
set :shared_children, %w(assets protected/runtime)
|
5
5
|
|
6
6
|
# Files that need to remain the same between deploys
|
7
7
|
set :shared_files, %w()
|
@@ -56,7 +56,6 @@ namespace :deploy do
|
|
56
56
|
desc "Customize the finalize_update task to work with yii."
|
57
57
|
task :finalize_update, :except => { :no_release => true } do
|
58
58
|
run "chmod -R g+w #{latest_release}" if fetch(:group_writable, true)
|
59
|
-
run "chmod 777 #{latest_release}/protected/runtime"
|
60
59
|
run "mkdir -p #{latest_release}/cache"
|
61
60
|
|
62
61
|
# Share common files & folders
|
@@ -69,6 +68,13 @@ namespace :deploy do
|
|
69
68
|
end
|
70
69
|
end
|
71
70
|
|
71
|
+
task :setup, :except => { :no_release => true } do
|
72
|
+
dirs = [deploy_to, releases_path, shared_path]
|
73
|
+
dirs += shared_children.map { |d| File.join(shared_path, d) }
|
74
|
+
run "#{try_sudo} mkdir -p #{dirs.join(' ')} && #{try_sudo} chmod g+w #{dirs.join(' ')}"
|
75
|
+
run "#{try_sudo} chmod a+rwx #{shared_children.map { |d| File.join(shared_path, d) }.join(' ')}"
|
76
|
+
end
|
77
|
+
|
72
78
|
desc "Need to overwrite the deploy:cold task so it doesn't try to run the migrations."
|
73
79
|
task :cold do
|
74
80
|
update
|
@@ -79,4 +85,5 @@ end
|
|
79
85
|
|
80
86
|
# After finalizing update:
|
81
87
|
after "deploy:finalize_update" do
|
88
|
+
run "#{try_sudo} chmod a+rwx #{shared_path}/protected"
|
82
89
|
end
|
data/yiifony.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yiifony
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andrey Voronov
|