railsmachine 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']
15
15
  desc "Does a full compile, test run"
16
16
  task :default => [:test, :package]
17
17
 
18
- version="1.0.3"
18
+ version="1.0.4"
19
19
  name="railsmachine"
20
20
 
21
21
  setup_gem(name, version) do |spec|
@@ -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 #{app_server}
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
- #{app_server.to_s == 'mongrel' ? "Start the mongrel processes on the app server." : "This task no effect when using Passenger as your application server."}
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 #{app_server} processes on the app server.
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
- #{app_server.to_s == 'mongrel' ? "Stop the mongrel processes on the app server." : "This task no effect when using Passenger as your application server."}
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,6 +1,5 @@
1
1
  Capistrano::Configuration.instance(:must_exist).load do
2
- set :use_mod_rewrite, false
3
- load 'config/deploy'
2
+
4
3
  namespace :passenger do
5
4
 
6
5
  [:start, :stop].each do |t|
@@ -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.3
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-18 00:00:00 -05:00
12
+ date: 2008-12-30 00:00:00 -05:00
13
13
  default_executable: railsmachine
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency