railsmachine 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
data/README
CHANGED
@@ -11,13 +11,13 @@ cap repos:setup
|
|
11
11
|
cd ../<app_name>_machine
|
12
12
|
cap servers:setup deploy:cold
|
13
13
|
|
14
|
-
|
14
|
+
The railsmachine gem has opinions about where the
|
15
|
+
various parts of your application should go:
|
15
16
|
|
16
|
-
/
|
17
|
-
/etc/
|
18
|
-
/var/
|
19
|
-
/etc/mongrel_cluster/ - Mongrel cluster configurations
|
17
|
+
/etc/httpd/conf/apps/ - Apache configurations
|
18
|
+
/etc/mongrel_cluster/ - Mongrel cluster configurations
|
19
|
+
/var/www/apps/ - Rails applications
|
20
20
|
|
21
|
-
You will need a 'deploy' system
|
22
|
-
You also need a 'deploy' mysql
|
21
|
+
You will need a 'deploy' account on the system with write access to the above directories.
|
22
|
+
You also need a 'deploy' account in your mysql database with all privileges and grant option.
|
23
23
|
|
data/Rakefile
CHANGED
@@ -0,0 +1,95 @@
|
|
1
|
+
require 'railsmachine/recipes'
|
2
|
+
|
3
|
+
# This defines a deployment "recipe" that you can feed to capistrano
|
4
|
+
# (http://manuals.rubyonrails.com/read/book/17). It allows you to automate
|
5
|
+
# (among other things) the deployment of your application.
|
6
|
+
|
7
|
+
# =============================================================================
|
8
|
+
# REQUIRED VARIABLES
|
9
|
+
# =============================================================================
|
10
|
+
# You must always specify the application and repository for every recipe. The
|
11
|
+
# repository must be the URL of the repository you want this recipe to
|
12
|
+
# correspond to. The deploy_to path must be the path on each machine that will
|
13
|
+
# form the root of the application path.
|
14
|
+
|
15
|
+
# The name of your application. Used for directory and file names associated with
|
16
|
+
# the application.
|
17
|
+
set :application, "<%= singular_name %>"
|
18
|
+
|
19
|
+
# Target directory for the application on the web and app servers.
|
20
|
+
set :deploy_to, "/var/www/apps/#{application}"
|
21
|
+
|
22
|
+
# Primary domain name of your application. Used as a default for all server roles.
|
23
|
+
set :domain, "<%= domain_name %>"
|
24
|
+
|
25
|
+
# Login user for ssh.
|
26
|
+
set :user, "deploy"
|
27
|
+
|
28
|
+
# URL of your source repository.
|
29
|
+
set :repository, "svn+ssh://#{user}@#{domain}#{deploy_to}/repos/trunk"
|
30
|
+
|
31
|
+
# Rails environment. Used by application setup tasks and migrate tasks.
|
32
|
+
set :rails_env, "production"
|
33
|
+
|
34
|
+
# Automatically symlink these directories from curent/public to shared/public.
|
35
|
+
# set :app_symlinks, %w{photo document asset}
|
36
|
+
|
37
|
+
# =============================================================================
|
38
|
+
# ROLES
|
39
|
+
# =============================================================================
|
40
|
+
# You can define any number of roles, each of which contains any number of
|
41
|
+
# machines. Roles might include such things as :web, or :app, or :db, defining
|
42
|
+
# what the purpose of each machine is. You can also specify options that can
|
43
|
+
# be used to single out a specific subset of boxes in a particular role, like
|
44
|
+
# :primary => true.
|
45
|
+
|
46
|
+
# Modify these values to execute tasks on a different server.
|
47
|
+
role :web, domain
|
48
|
+
role :app, domain
|
49
|
+
role :db, domain, :primary => true
|
50
|
+
role :scm, domain
|
51
|
+
|
52
|
+
# =============================================================================
|
53
|
+
# APACHE OPTIONS
|
54
|
+
# =============================================================================
|
55
|
+
# set :apache_server_name, domain
|
56
|
+
# set :apache_server_aliases, %w{alias1 alias2}
|
57
|
+
# set :apache_default_vhost, true # force use of apache_default_vhost_config
|
58
|
+
# set :apache_default_vhost_conf, "/etc/httpd/conf/default.conf"
|
59
|
+
# set :apache_conf, "/etc/httpd/conf/apps/#{application}.conf"
|
60
|
+
# set :apache_ctl, "/etc/init.d/httpd"
|
61
|
+
# set :apache_proxy_port, 8000
|
62
|
+
# set :apache_proxy_servers, 2
|
63
|
+
# set :apache_proxy_address, "127.0.0.1"
|
64
|
+
# set :apache_ssl_enabled, false
|
65
|
+
# set :apache_ssl_ip, "127.0.0.1"
|
66
|
+
# set :apache_ssl_forward_all, false
|
67
|
+
|
68
|
+
# =============================================================================
|
69
|
+
# MONGREL OPTIONS
|
70
|
+
# =============================================================================
|
71
|
+
# set :mongrel_servers, apache_proxy_servers
|
72
|
+
# set :mongrel_port, apache_proxy_port
|
73
|
+
# set :mongrel_address, apache_proxy_address
|
74
|
+
# set :mongrel_environment, "production"
|
75
|
+
# set :mongrel_pid_file, "/var/run/mongrel_cluster/#{application}.pid"
|
76
|
+
# set :mongrel_conf, "/etc/mongrel_cluster/#{application}.conf"
|
77
|
+
# set :mongrel_user, user
|
78
|
+
# set :mongrel_group, group
|
79
|
+
|
80
|
+
# =============================================================================
|
81
|
+
# SCM OPTIONS
|
82
|
+
# =============================================================================
|
83
|
+
#set :scm,"subversion"
|
84
|
+
|
85
|
+
# =============================================================================
|
86
|
+
# SSH OPTIONS
|
87
|
+
# =============================================================================
|
88
|
+
# ssh_options[:keys] = %w(/path/to/my/key /path/to/another/key)
|
89
|
+
# ssh_options[:port] = 25
|
90
|
+
|
91
|
+
# =============================================================================
|
92
|
+
# CAPISTRANO OPTIONS
|
93
|
+
# =============================================================================
|
94
|
+
# default_run_options[:pty] = true
|
95
|
+
# set :keep_releases, 3
|
metadata
CHANGED
@@ -1,33 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.4
|
3
|
-
specification_version: 1
|
4
2
|
name: railsmachine
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2007-11-02 00:00:00 -04:00
|
8
|
-
summary: The Rails Machine task library
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email:
|
12
|
-
homepage:
|
13
|
-
rubyforge_project:
|
14
|
-
description: The Rails Machine task library
|
15
|
-
autorequire:
|
16
|
-
default_executable: railsmachine
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: false
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 0.0.0
|
24
|
-
version:
|
4
|
+
version: 1.0.1
|
25
5
|
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
6
|
authors:
|
30
7
|
- Bradley Taylor, Rob Lingle
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-07-24 00:00:00 -04:00
|
13
|
+
default_executable: railsmachine
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: capistrano
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 2.0.0
|
24
|
+
version:
|
25
|
+
description: The Rails Machine task library
|
26
|
+
email:
|
27
|
+
executables:
|
28
|
+
- railsmachine
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files:
|
32
|
+
- README
|
31
33
|
files:
|
32
34
|
- COPYING
|
33
35
|
- LICENSE
|
@@ -40,6 +42,7 @@ files:
|
|
40
42
|
- lib/railsmachine/generators/railsmachine
|
41
43
|
- lib/railsmachine/generators/railsmachine/templates
|
42
44
|
- lib/railsmachine/generators/railsmachine/templates/deploy.rb
|
45
|
+
- lib/railsmachine/generators/railsmachine/templates/deploy.rb~
|
43
46
|
- lib/railsmachine/generators/railsmachine/railsmachine_generator.rb
|
44
47
|
- lib/railsmachine/generators/railsmachine/USAGE
|
45
48
|
- lib/railsmachine/recipes.rb
|
@@ -54,25 +57,31 @@ files:
|
|
54
57
|
- lib/railsmachine/recipes/apache.rb
|
55
58
|
- tools/rakehelp.rb
|
56
59
|
- resources/defaults.yaml
|
57
|
-
|
58
|
-
|
60
|
+
has_rdoc: false
|
61
|
+
homepage:
|
62
|
+
post_install_message:
|
59
63
|
rdoc_options: []
|
60
64
|
|
61
|
-
|
62
|
-
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
65
|
+
require_paths:
|
66
|
+
- lib
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: "0"
|
72
|
+
version:
|
73
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: "0"
|
78
|
+
version:
|
67
79
|
requirements: []
|
68
80
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: 2.0.0
|
78
|
-
version:
|
81
|
+
rubyforge_project:
|
82
|
+
rubygems_version: 1.2.0
|
83
|
+
signing_key:
|
84
|
+
specification_version: 2
|
85
|
+
summary: The Rails Machine task library
|
86
|
+
test_files: []
|
87
|
+
|