deprec 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/lib/deprec/recipes/app/passenger.rb +3 -3
- data/lib/deprec/recipes/rails.rb +1 -6
- metadata +1 -1
data/CHANGELOG
CHANGED
@@ -134,11 +134,11 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
134
134
|
deprec2.push_configs(:passenger, PROJECT_CONFIG_FILES[:passenger])
|
135
135
|
symlink_apache_vhost
|
136
136
|
activate_project
|
137
|
-
set_ownership_of_environment_rb
|
138
137
|
end
|
139
138
|
|
140
|
-
|
141
|
-
|
139
|
+
# Passenger runs Rails as the owner of this file.
|
140
|
+
task :set_owner_of_environment_rb, :roles => :app do
|
141
|
+
sudo "chown #{app_user} #{current_path}/config/environment.rb"
|
142
142
|
end
|
143
143
|
|
144
144
|
task :symlink_apache_vhost, :roles => :app do
|
data/lib/deprec/recipes/rails.rb
CHANGED
@@ -38,7 +38,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
38
38
|
top.deprec.rails.symlink_shared_dirs
|
39
39
|
top.deprec.rails.symlink_database_yml unless database_yml_in_scm
|
40
40
|
top.deprec.rails.make_writable_by_app
|
41
|
-
set_owner_of_environment_rb if
|
41
|
+
top.deprec.passenger.set_owner_of_environment_rb if app_server_type.to_s == 'passenger'
|
42
42
|
end
|
43
43
|
|
44
44
|
after :deploy, "deploy:cleanup"
|
@@ -170,11 +170,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
170
170
|
sudo "chgrp -R #{group} #{shared_path} #{releases}"
|
171
171
|
sudo "chmod -R g+w #{shared_path} #{releases}"
|
172
172
|
end
|
173
|
-
|
174
|
-
# Passenger runs Rails as the owner of this file.
|
175
|
-
task :set_owner_of_environment_rb, :roles => :app do
|
176
|
-
sudo "chown #{app_user} #{current_path}/config/environment.rb"
|
177
|
-
end
|
178
173
|
|
179
174
|
# Setup database server.
|
180
175
|
task :setup_db, :roles => :db, :only => { :primary => true } do
|