le1t0-deprec 2.1.6.007 → 2.1.6.008
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/bin/depify +6 -4
- data/lib/deprec/recipes/app/mongrel.rb +2 -2
- data/lib/deprec/recipes/app/passenger.rb +1 -2
- data/lib/deprec/recipes/starling.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
data/bin/depify
CHANGED
@@ -47,10 +47,12 @@ files = {
|
|
47
47
|
# your SCM below:
|
48
48
|
set :scm, :git
|
49
49
|
|
50
|
-
set :
|
51
|
-
set :
|
52
|
-
set :
|
53
|
-
set :
|
50
|
+
set :ruby_choice, :ree # :ree, :mri
|
51
|
+
set :web_choice, :apache # :apache, :nginx
|
52
|
+
set :app_choice, :passenger # :passenger, :mongrel
|
53
|
+
set :db_choice, :mysql # :mysql, :postgresql, :sqlite
|
54
|
+
set :sphinx_choice, :thinking_sphinx
|
55
|
+
set :imagemagick_choice, :imagemagick_src
|
54
56
|
|
55
57
|
# set :packages_for_project, %w(libmagick9-dev imagemagick libfreeimage3) # list of packages to be installed
|
56
58
|
# set :gems_for_project, %w(rmagick mini_magick image_science) # list of gems to be installed
|
@@ -104,7 +104,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
104
104
|
task :config_project, :roles => :app do
|
105
105
|
deprec2.push_configs(:mongrel, PROJECT_CONFIG_FILES[:mongrel])
|
106
106
|
symlink_mongrel_cluster
|
107
|
-
send("symlink_#{
|
107
|
+
send("symlink_#{web_choice}_vhost")
|
108
108
|
symlink_monit_config
|
109
109
|
symlink_logrotate_config
|
110
110
|
activate_project
|
@@ -171,7 +171,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
171
171
|
task :activate_project, :roles => :app do
|
172
172
|
symlink_mongrel_cluster
|
173
173
|
symlink_monit_config
|
174
|
-
if
|
174
|
+
if web_choice.to_s == 'apache'
|
175
175
|
sudo "a2ensite #{application}"
|
176
176
|
end
|
177
177
|
end
|
@@ -4,8 +4,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
4
4
|
namespace :passenger do
|
5
5
|
|
6
6
|
set(:passenger_install_dir) {
|
7
|
-
|
8
|
-
if ruby_vm_type == :ree
|
7
|
+
if ruby_choice == :ree
|
9
8
|
base_dir = "#{ree_install_dir}/lib/ruby/gems/1.8/gems/"
|
10
9
|
latest_passenger_version = capture("ls -d #{base_dir + 'passenger-*'} | tail -1").chomp
|
11
10
|
else
|
@@ -25,7 +25,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
25
25
|
|
26
26
|
create_starling_user_and_group
|
27
27
|
set_perms_for_starling_dirs
|
28
|
-
symlink_starling_for_rubyee if
|
28
|
+
symlink_starling_for_rubyee if ruby_choice == :ree
|
29
29
|
|
30
30
|
SYSTEM_CONFIG_FILES[:starling].each do |file|
|
31
31
|
deprec2.render_template(:starling, file.merge(:remote=>true))
|