railslove_deploy 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/railslove/recipes/bundler.rb +16 -0
- data/lib/railslove/recipes/db.rb +6 -1
- data/lib/railslove/sprinkle/essentials.rb +1 -1
- data/lib/railslove/sprinkle/passenger.rb +5 -5
- data/lib/railslove/sprinkle/ruby_enterprise.rb +3 -2
- data/lib/railslove/sprinkle/usefull_gems.rb +1 -1
- data/lib/railslove/templates/deploy.rb +7 -2
- data/lib/railslove/templates/passenger.conf +1 -1
- data/lib/railslove/templates/passenger.load +1 -1
- metadata +20 -11
- data/README +0 -12
@@ -0,0 +1,16 @@
|
|
1
|
+
namespace :deploy do
|
2
|
+
desc "run 'bundle install' to install Bundler's packaged gems for the current deploy"
|
3
|
+
task :bundle_install, :roles => :app do
|
4
|
+
run <<-CMD
|
5
|
+
mkdir -p #{shared_path}/.bundle &&
|
6
|
+
mkdir -p #{shared_path}/vendor/bundler_gems
|
7
|
+
CMD
|
8
|
+
|
9
|
+
run <<-CMD
|
10
|
+
ln -s #{shared_path}/.bundle #{latest_release}/.bundle &&
|
11
|
+
ln -s #{shared_path}/vendor/bundler_gems #{latest_release}/vendor/bundler_gems
|
12
|
+
CMD
|
13
|
+
|
14
|
+
run "cd #{latest_release} && /usr/local/ruby-enterprise/bin/bundle check || /usr/local/ruby-enterprise/bin/bundle install vendor/bundler_gems --disable-shared-gems --without development test"
|
15
|
+
end
|
16
|
+
end
|
data/lib/railslove/recipes/db.rb
CHANGED
@@ -13,7 +13,12 @@ namespace :db do
|
|
13
13
|
task :stop, :roles => :db do
|
14
14
|
sudo "/etc/init.d/mysql stop"
|
15
15
|
end
|
16
|
-
|
16
|
+
|
17
|
+
desc "run the rake db:seed task to load seed data"
|
18
|
+
task :seed, :roles => :db do
|
19
|
+
rake("db:seed")
|
20
|
+
end
|
21
|
+
|
17
22
|
desc "Export MySQL database"
|
18
23
|
task :export, :roles => :db do
|
19
24
|
database = Capistrano::CLI.ui.ask("Which database should we export: ")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
package :essentials do
|
2
2
|
description 'Essential Tools'
|
3
|
-
apt %w{sudo wget make unzip
|
3
|
+
apt %w{sudo wget make unzip libpcre3 libpcre3-dev libpcrecpp0 libssl-dev libxml2-dev libxml2 libxslt-dev zlib1g-dev libgcrypt11-dev openssl libssl-dev gcc g++ gettext libreadline-dev logrotate ssl-cert flex} do
|
4
4
|
pre :install, 'apt-get update'
|
5
5
|
end
|
6
6
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
package :passenger_gem do
|
2
2
|
description 'Phusion Passenger (aka mod_rails)'
|
3
|
-
version '2.2.
|
3
|
+
version '2.2.11'
|
4
4
|
gem 'passenger'
|
5
5
|
requires :ruby_enterprise
|
6
6
|
|
@@ -14,7 +14,7 @@ package :passenger_apache, :provides => :appserver do
|
|
14
14
|
# require the apache passenger module load/conf files before installation because of a sprinkle limitation.
|
15
15
|
requires :apache, :passenger_gem, :passenger_module_load, :passenger_module_conf
|
16
16
|
|
17
|
-
passenger_version = '2.2.
|
17
|
+
passenger_version = '2.2.11'
|
18
18
|
|
19
19
|
noop do
|
20
20
|
pre :install, 'passenger-install-apache2-module --auto'
|
@@ -25,7 +25,7 @@ package :passenger_apache, :provides => :appserver do
|
|
25
25
|
end
|
26
26
|
|
27
27
|
verify do
|
28
|
-
has_file
|
28
|
+
has_file "/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-#{passenger_version}/ext/apache2/mod_passenger.so"
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
@@ -35,7 +35,7 @@ package :passenger_module_load do
|
|
35
35
|
requires :apache, :passenger_gem
|
36
36
|
|
37
37
|
#TODO: :render => true seems not to work? hello sprinkle?!
|
38
|
-
passenger_version = '2.2.
|
38
|
+
passenger_version = '2.2.11'
|
39
39
|
transfer "#{File.dirname(__FILE__)}/../templates/passenger.load", "/etc/apache2/mods-available/passenger.load", :render => true
|
40
40
|
|
41
41
|
verify do
|
@@ -49,7 +49,7 @@ package :passenger_module_conf do
|
|
49
49
|
requires :apache, :passenger_gem
|
50
50
|
|
51
51
|
#TODO: :render => true seems not to work? hello sprinkle?!
|
52
|
-
passenger_version = '2.2.
|
52
|
+
passenger_version = '2.2.11'
|
53
53
|
transfer "#{File.dirname(__FILE__)}/../templates/passenger.conf", "/etc/apache2/mods-available/passenger.conf", :render => true
|
54
54
|
|
55
55
|
verify do
|
@@ -12,14 +12,15 @@ package :ruby_enterprise, :provides => :ruby do
|
|
12
12
|
["","#Adding rubyenterprise as path",
|
13
13
|
"PATH=$PATH:#{install_path}/bin",
|
14
14
|
"export PATH"].each do |line|
|
15
|
-
post :install, "echo '#{line}' |
|
15
|
+
post :install, "echo '#{line}' | tee -a /etc/profile"
|
16
16
|
end
|
17
17
|
|
18
18
|
#TODO: figure out how setting the ruby-enterprise dir in PATH variable for sudo
|
19
|
-
post :install, "ln -s /usr/local/ruby-enterprise/bin/* /usr/local/bin/"
|
19
|
+
#post :install, "ln -s /usr/local/ruby-enterprise/bin/* /usr/local/bin/"
|
20
20
|
|
21
21
|
#reload /etc/profile
|
22
22
|
post :install, "source /etc/profile"
|
23
|
+
post :install, "gem update --system"
|
23
24
|
post :install, "gem sources -a http://gems.github.com"
|
24
25
|
end
|
25
26
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
package :usefull_gems do
|
2
|
-
USEFUL_GEMS ="
|
2
|
+
USEFUL_GEMS ="astrails-safe bcrypt-ruby builder bundler chronic daemons erubis eventmachine haml i18n json json_pure mail memcache-client mime-types net-sftp net-ssh ParseTree rack rack-test rack-mount rails ruby2ruby RubyInline text-format thor tzinfo wvanbergen-request-log-analyzer"
|
3
3
|
gem USEFUL_GEMS
|
4
4
|
|
5
5
|
verify do
|
@@ -83,7 +83,9 @@ set :use_sudo, false
|
|
83
83
|
# symlinks <release>/config/myconfig.rb to <shared>/config/myconfig.rb and
|
84
84
|
|
85
85
|
|
86
|
-
set :shared_files, {
|
86
|
+
set :shared_files, {
|
87
|
+
".bundle" => ".bundle"
|
88
|
+
}
|
87
89
|
|
88
90
|
|
89
91
|
#############################################################################
|
@@ -180,7 +182,7 @@ after "deploy:setup",
|
|
180
182
|
"logrotate:configure",
|
181
183
|
"apache:upload_vhost_config",
|
182
184
|
"db:upload_config_yml",
|
183
|
-
"gems:install"
|
185
|
+
"gems:install", # you probably don't need this if you're using bundler
|
184
186
|
"shared:setup"
|
185
187
|
|
186
188
|
after "deploy:cold",
|
@@ -192,3 +194,6 @@ after "deploy:finalize_update",
|
|
192
194
|
"db:create",
|
193
195
|
"shared:symlink",
|
194
196
|
"deploy:cleanup"
|
197
|
+
|
198
|
+
# are you using bundler?
|
199
|
+
#after "deploy:update_code", "deploy:bundle_install"
|
@@ -1,3 +1,3 @@
|
|
1
|
-
PassengerRoot /usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-<%= passenger_version || "2.2.
|
1
|
+
PassengerRoot /usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-<%= passenger_version || "2.2.11" %>
|
2
2
|
PassengerRuby /usr/local/ruby-enterprise/bin/ruby
|
3
3
|
RailsEnv production
|
@@ -1 +1 @@
|
|
1
|
-
LoadModule passenger_module /usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-<%= passenger_version || "2.2.
|
1
|
+
LoadModule passenger_module /usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-<%= passenger_version || "2.2.11" %>/ext/apache2/mod_passenger.so
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railslove_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 4
|
8
|
+
- 2
|
9
|
+
version: 0.4.2
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Michael Bumann
|
@@ -9,19 +14,22 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-04-29 00:00:00 +02:00
|
13
18
|
default_executable: deployify
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: capistrano
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ">="
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 2
|
29
|
+
- 5
|
23
30
|
version: "2.5"
|
24
|
-
|
31
|
+
type: :runtime
|
32
|
+
version_requirements: *id001
|
25
33
|
description: "The Railslove deploy gem is a collection of sprinkle and capistrano recipes to setup your server and app deployment. Setup your server and deploy your app within minutes and let the script "
|
26
34
|
email: michael@railslove.com
|
27
35
|
executables:
|
@@ -30,13 +38,13 @@ extensions: []
|
|
30
38
|
|
31
39
|
extra_rdoc_files:
|
32
40
|
- LICENSE
|
33
|
-
- README
|
34
41
|
- TODO
|
35
42
|
files:
|
36
43
|
- bin/deployify
|
37
44
|
- lib/railslove/recipes.rb
|
38
45
|
- lib/railslove/recipes/apache.rb
|
39
46
|
- lib/railslove/recipes/backup.rb
|
47
|
+
- lib/railslove/recipes/bundler.rb
|
40
48
|
- lib/railslove/recipes/db.rb
|
41
49
|
- lib/railslove/recipes/deploy.rb
|
42
50
|
- lib/railslove/recipes/ferm.rb
|
@@ -100,7 +108,6 @@ files:
|
|
100
108
|
- test/railslove_deploy_test.rb
|
101
109
|
- test/test_helper.rb
|
102
110
|
- LICENSE
|
103
|
-
- README
|
104
111
|
- TODO
|
105
112
|
has_rdoc: true
|
106
113
|
homepage: http://github.com/railslove/railslove_deploy
|
@@ -115,18 +122,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
122
|
requirements:
|
116
123
|
- - ">="
|
117
124
|
- !ruby/object:Gem::Version
|
125
|
+
segments:
|
126
|
+
- 0
|
118
127
|
version: "0"
|
119
|
-
version:
|
120
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
129
|
requirements:
|
122
130
|
- - ">="
|
123
131
|
- !ruby/object:Gem::Version
|
132
|
+
segments:
|
133
|
+
- 0
|
124
134
|
version: "0"
|
125
|
-
version:
|
126
135
|
requirements: []
|
127
136
|
|
128
137
|
rubyforge_project:
|
129
|
-
rubygems_version: 1.3.
|
138
|
+
rubygems_version: 1.3.6
|
130
139
|
signing_key:
|
131
140
|
specification_version: 3
|
132
141
|
summary: The Railslove deploy gem to setup a full ruby server stack. Includes Sprinkle setup scripts and Capistrano deployment recipes.
|
data/README
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
railslove_deploy
|
2
|
-
================
|
3
|
-
|
4
|
-
The Railslove deploy gem to setup a full ruby server stack. Includes Sprinkle setup scripts and Capistrano deployment recipes.
|
5
|
-
|
6
|
-
TODO: README
|
7
|
-
|
8
|
-
|
9
|
-
COPYRIGHT
|
10
|
-
=========
|
11
|
-
|
12
|
-
Copyright (c) 2008 Michael Bumann. See LICENSE for details.
|