railsmachine 1.0.3 → 1.0.4
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/Rakefile
CHANGED
data/lib/railsmachine/recipes.rb
CHANGED
@@ -3,14 +3,44 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
3
3
|
default_run_options[:pty] = true
|
4
4
|
set :keep_releases, 3
|
5
5
|
set :app_symlinks, nil
|
6
|
-
set :scm, :subversion
|
6
|
+
set :scm, :subversion
|
7
7
|
set :httpd, :apache
|
8
|
-
set :app_server, :mongrel
|
8
|
+
set :app_server, :mongrel
|
9
9
|
set :db_adapter, :mysql
|
10
10
|
set :rails_env, "production"
|
11
|
-
|
12
|
-
load 'config/deploy'
|
13
11
|
|
12
|
+
# mongrel defaults
|
13
|
+
set :mongrel_servers, 2
|
14
|
+
set :mongrel_port, 8000
|
15
|
+
set :mongrel_address, "127.0.0.1"
|
16
|
+
set :mongrel_environment, "production"
|
17
|
+
set :mongrel_conf, nil
|
18
|
+
set :mongrel_user, nil
|
19
|
+
set :mongrel_group, nil
|
20
|
+
set :mongrel_prefix, nil
|
21
|
+
set :mongrel_rails, 'mongrel_rails'
|
22
|
+
set :mongrel_clean, false
|
23
|
+
set :mongrel_pid_file, nil
|
24
|
+
set :mongrel_log_file, nil
|
25
|
+
set :mongrel_config_script, nil
|
26
|
+
|
27
|
+
# passenger defaults
|
28
|
+
set :use_mod_rewrite, false
|
29
|
+
|
30
|
+
# apache defaults
|
31
|
+
set :apache_server_name, nil
|
32
|
+
set :apache_conf, nil
|
33
|
+
set :apache_default_vhost, false
|
34
|
+
set :apache_default_vhost_conf, nil
|
35
|
+
set :apache_ctl, "/etc/init.d/httpd"
|
36
|
+
set :apache_server_aliases, []
|
37
|
+
set :apache_proxy_port, 8000
|
38
|
+
set :apache_proxy_servers, 2
|
39
|
+
set :apache_proxy_address, "127.0.0.1"
|
40
|
+
set :apache_ssl_enabled, false
|
41
|
+
set :apache_ssl_ip, nil
|
42
|
+
set :apache_ssl_forward_all, false
|
43
|
+
|
14
44
|
set :repository do
|
15
45
|
scm = fetch(:scm)
|
16
46
|
repos_base = "#{user}@#{domain}#{deploy_to}"
|
@@ -20,7 +50,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
20
50
|
"ssh://#{repos_base}/repos/#{application}.git"
|
21
51
|
end
|
22
52
|
end
|
23
|
-
|
24
53
|
|
25
54
|
task :validate_required_variables do
|
26
55
|
validate_option(:scm, :in => [:subversion, :git])
|
@@ -73,7 +102,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
73
102
|
namespace :app do
|
74
103
|
|
75
104
|
desc <<-DESC
|
76
|
-
Setup
|
105
|
+
Setup application server.
|
77
106
|
DESC
|
78
107
|
task :setup, :roles => :app do
|
79
108
|
case app_server.to_s
|
@@ -188,6 +217,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
188
217
|
task :setup, :roles => :scm do
|
189
218
|
begin
|
190
219
|
sudo "chown -R #{user}:#{user} #{deploy_to.gsub(application,'')}"
|
220
|
+
dump_settings
|
191
221
|
localrepo.setup
|
192
222
|
rescue
|
193
223
|
puts "repos:setup failed!"
|
@@ -1,23 +1,22 @@
|
|
1
1
|
Capistrano::Configuration.instance(:must_exist).load do
|
2
|
-
load 'config/deploy'
|
3
2
|
namespace :deploy do
|
4
3
|
|
5
4
|
desc <<-DESC
|
6
|
-
|
5
|
+
Start the application server processes.
|
7
6
|
DESC
|
8
7
|
task :start, :roles => :app do
|
9
8
|
application_servlet.start
|
10
9
|
end
|
11
10
|
|
12
11
|
desc <<-DESC
|
13
|
-
Restart the
|
12
|
+
Restart the application server processes.
|
14
13
|
DESC
|
15
14
|
task :restart, :roles => :app do
|
16
15
|
application_servlet.restart
|
17
16
|
end
|
18
17
|
|
19
18
|
desc <<-DESC
|
20
|
-
|
19
|
+
Stop the application server processes.
|
21
20
|
DESC
|
22
21
|
task :stop, :roles => :app do
|
23
22
|
application_servlet.stop
|
@@ -1,19 +1,4 @@
|
|
1
1
|
Capistrano::Configuration.instance(:must_exist).load do
|
2
|
-
set :mongrel_servers, 2
|
3
|
-
set :mongrel_port, 8000
|
4
|
-
set :mongrel_address, "127.0.0.1"
|
5
|
-
set :mongrel_environment, "production"
|
6
|
-
set :mongrel_conf, nil
|
7
|
-
set :mongrel_user, nil
|
8
|
-
set :mongrel_group, nil
|
9
|
-
set :mongrel_prefix, nil
|
10
|
-
set :mongrel_rails, 'mongrel_rails'
|
11
|
-
set :mongrel_clean, false
|
12
|
-
set :mongrel_pid_file, nil
|
13
|
-
set :mongrel_log_file, nil
|
14
|
-
set :mongrel_config_script, nil
|
15
|
-
|
16
|
-
load 'config/deploy'
|
17
2
|
|
18
3
|
namespace :mongrel do
|
19
4
|
|
@@ -1,22 +1,6 @@
|
|
1
1
|
require 'erb'
|
2
2
|
Capistrano::Configuration.instance(:must_exist).load do
|
3
3
|
|
4
|
-
|
5
|
-
set :apache_server_name, nil
|
6
|
-
set :apache_conf, nil
|
7
|
-
set :apache_default_vhost, false
|
8
|
-
set :apache_default_vhost_conf, nil
|
9
|
-
set :apache_ctl, "/etc/init.d/httpd"
|
10
|
-
set :apache_server_aliases, []
|
11
|
-
set :apache_proxy_port, 8000
|
12
|
-
set :apache_proxy_servers, 2
|
13
|
-
set :apache_proxy_address, "127.0.0.1"
|
14
|
-
set :apache_ssl_enabled, false
|
15
|
-
set :apache_ssl_ip, nil
|
16
|
-
set :apache_ssl_forward_all, false
|
17
|
-
|
18
|
-
load 'config/deploy'
|
19
|
-
|
20
4
|
namespace :apache do
|
21
5
|
|
22
6
|
desc "Configure Apache. This uses the :use_sudo
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railsmachine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rails Machine
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-12-
|
12
|
+
date: 2008-12-30 00:00:00 -05:00
|
13
13
|
default_executable: railsmachine
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|