Agiley-ec2onrails 0.9.9 → 0.9.10
Sign up to get free protection for your applications and to get access to all the features.
- data/{History.txt → CHANGELOG} +0 -0
- data/{COPYING.txt → COPYING} +0 -0
- data/Manifest +161 -0
- data/{website/index.txt → README.textile} +33 -5
- data/Rakefile +36 -4
- data/TODO +91 -0
- data/ec2onrails.gemspec +279 -0
- data/examples/Capfile +3 -0
- data/examples/deploy.rb +88 -0
- data/examples/s3.yml +9 -0
- data/lib/ec2onrails/capistrano_utils.rb +0 -11
- data/lib/ec2onrails/recipes.rb +165 -59
- data/lib/ec2onrails/version.rb +1 -1
- data/server/build-ec2onrails.sh +44 -0
- data/server/files/etc/aliases +5 -0
- data/server/files/etc/aliases.db +0 -0
- data/server/files/etc/apache2/apache2.conf +295 -0
- data/server/files/etc/apache2/conf.d/app.proxy_cluster.conf +7 -0
- data/server/files/etc/apache2/conf.d/app.proxy_frontend.conf +10 -0
- data/server/files/etc/apache2/mods-available/proxy.conf +18 -0
- data/server/files/etc/apache2/sites-available/app.common +56 -0
- data/server/files/etc/apache2/sites-available/app.custom +0 -0
- data/server/files/etc/apache2/sites-available/default +14 -0
- data/server/files/etc/apache2/sites-available/default-ssl +18 -0
- data/server/files/etc/cron.d/backup_app_db_to_s3 +6 -0
- data/server/files/etc/cron.daily/app +9 -0
- data/server/files/etc/cron.daily/logrotate_post +19 -0
- data/server/files/etc/cron.hourly/app +10 -0
- data/server/files/etc/cron.monthly/app +10 -0
- data/server/files/etc/cron.weekly/app +10 -0
- data/server/files/etc/ec2onrails/balancer_members +6 -0
- data/server/files/etc/ec2onrails/roles.yml +5 -0
- data/server/files/etc/environment +2 -0
- data/server/files/etc/event.d/monit +13 -0
- data/server/files/etc/init.d/ec2-every-startup +29 -0
- data/server/files/etc/init.d/ec2-first-startup +36 -0
- data/server/files/etc/init.d/mongrel +91 -0
- data/server/files/etc/init.d/nginx +78 -0
- data/server/files/etc/init.d/set_roles +3 -0
- data/server/files/etc/logrotate.d/apache2 +16 -0
- data/server/files/etc/logrotate.d/mongrel +11 -0
- data/server/files/etc/logrotate.d/nginx +11 -0
- data/server/files/etc/memcached.conf +47 -0
- data/server/files/etc/mongrel_cluster/app.yml +9 -0
- data/server/files/etc/monit/README +5 -0
- data/server/files/etc/monit/app.monitrc.erb +13 -0
- data/server/files/etc/monit/db_primary.monitrc.erb +10 -0
- data/server/files/etc/monit/memcache.monitrc +8 -0
- data/server/files/etc/monit/monitrc +12 -0
- data/server/files/etc/monit/system.monitrc +15 -0
- data/server/files/etc/monit/web.monitrc.erb +23 -0
- data/server/files/etc/motd.tail +13 -0
- data/server/files/etc/mysql/my.cnf +149 -0
- data/server/files/etc/nginx/nginx.conf +296 -0
- data/server/files/etc/postfix/main.cf +4 -0
- data/server/files/etc/rc0.d/K10mongrel +1 -0
- data/server/files/etc/rc1.d/K10mongrel +1 -0
- data/server/files/etc/rc2.d/S90mongrel +1 -0
- data/server/files/etc/rc3.d/S90mongrel +1 -0
- data/server/files/etc/rc4.d/S90mongrel +1 -0
- data/server/files/etc/rc5.d/S90mongrel +1 -0
- data/server/files/etc/rc6.d/K10mongrel +1 -0
- data/server/files/etc/rcS.d/S91ec2-first-startup +1 -0
- data/server/files/etc/rcS.d/S92ec2-every-startup +1 -0
- data/server/files/etc/rcS.d/S99set_roles +1 -0
- data/server/files/etc/ssh/sshd_config +94 -0
- data/server/files/etc/sudoers +1 -0
- data/server/files/etc/sudoers.full_access +26 -0
- data/server/files/etc/sudoers.restricted_access +28 -0
- data/server/files/etc/syslog.conf +69 -0
- data/server/files/usr/local/ec2onrails/COPYING +339 -0
- data/server/files/usr/local/ec2onrails/bin/archive_file.rb +44 -0
- data/server/files/usr/local/ec2onrails/bin/backup_app_db.rb +68 -0
- data/server/files/usr/local/ec2onrails/bin/init_services.rb +57 -0
- data/server/files/usr/local/ec2onrails/bin/mongrel_start +8 -0
- data/server/files/usr/local/ec2onrails/bin/mongrel_stop +8 -0
- data/server/files/usr/local/ec2onrails/bin/optimize_mysql.rb +339 -0
- data/server/files/usr/local/ec2onrails/bin/rails_env +35 -0
- data/server/files/usr/local/ec2onrails/bin/rebundle.sh +70 -0
- data/server/files/usr/local/ec2onrails/bin/restore_app_db.rb +58 -0
- data/server/files/usr/local/ec2onrails/bin/set_rails_env +40 -0
- data/server/files/usr/local/ec2onrails/bin/set_roles.rb +76 -0
- data/server/files/usr/local/ec2onrails/bin/setup_web_proxy.rb +106 -0
- data/server/files/usr/local/ec2onrails/config +30 -0
- data/server/files/usr/local/ec2onrails/lib/mysql_helper.rb +82 -0
- data/server/files/usr/local/ec2onrails/lib/roles_helper.rb +137 -0
- data/server/files/usr/local/ec2onrails/lib/s3_helper.rb +126 -0
- data/server/files/usr/local/ec2onrails/lib/utils.rb +16 -0
- data/server/files/usr/local/ec2onrails/lib/vendor/ini.rb +268 -0
- data/server/files/usr/local/ec2onrails/startup-scripts/every-startup/get-hostname.sh +27 -0
- data/server/files/usr/local/ec2onrails/startup-scripts/first-startup/README +5 -0
- data/server/files/usr/local/ec2onrails/startup-scripts/first-startup/create-dirs.sh +42 -0
- data/server/files/usr/local/ec2onrails/startup-scripts/first-startup/generate-default-web-cert-and-key.sh +49 -0
- data/server/files/usr/local/ec2onrails/startup-scripts/first-startup/misc.sh +27 -0
- data/server/files/usr/local/ec2onrails/startup-scripts/first-startup/prepare-mysql-data-dir.sh +24 -0
- data/server/files/usr/local/ec2onrails/startup-scripts/first-startup/setup-credentials.sh +29 -0
- data/server/rakefile.rb +222 -0
- data/test/autobench.conf +60 -0
- data/test/spec/lib/s3_helper_spec.rb +134 -0
- data/test/spec/lib/s3_old.yml +3 -0
- data/test/spec/test_files/test1 +0 -0
- data/test/spec/test_files/test2 +0 -0
- data/test/test_app/Capfile +3 -0
- data/test/test_app/README +182 -0
- data/test/test_app/Rakefile +10 -0
- data/test/test_app/app/controllers/application.rb +7 -0
- data/test/test_app/app/controllers/db_fast_controller.rb +6 -0
- data/test/test_app/app/controllers/fast_controller.rb +5 -0
- data/test/test_app/app/controllers/slow_controller.rb +6 -0
- data/test/test_app/app/controllers/very_slow_controller.rb +6 -0
- data/test/test_app/app/helpers/application_helper.rb +3 -0
- data/test/test_app/app/helpers/db_fast_helper.rb +2 -0
- data/test/test_app/app/helpers/fast_helper.rb +2 -0
- data/test/test_app/app/helpers/slow_helper.rb +2 -0
- data/test/test_app/app/helpers/very_slow_helper.rb +2 -0
- data/test/test_app/config/boot.rb +109 -0
- data/test/test_app/config/database.yml +19 -0
- data/test/test_app/config/deploy.rb +21 -0
- data/test/test_app/config/environment.rb +60 -0
- data/test/test_app/config/environments/development.rb +21 -0
- data/test/test_app/config/environments/production.rb +18 -0
- data/test/test_app/config/environments/test.rb +19 -0
- data/test/test_app/config/routes.rb +27 -0
- data/test/test_app/db/schema.rb +7 -0
- data/test/test_app/doc/README_FOR_APP +2 -0
- data/test/test_app/public/404.html +30 -0
- data/test/test_app/public/500.html +30 -0
- data/test/test_app/public/dispatch.cgi +10 -0
- data/test/test_app/public/dispatch.fcgi +24 -0
- data/test/test_app/public/dispatch.rb +10 -0
- data/test/test_app/public/favicon.ico +0 -0
- data/test/test_app/public/images/rails.png +0 -0
- data/test/test_app/public/javascripts/application.js +2 -0
- data/test/test_app/public/javascripts/controls.js +963 -0
- data/test/test_app/public/javascripts/dragdrop.js +972 -0
- data/test/test_app/public/javascripts/effects.js +1120 -0
- data/test/test_app/public/javascripts/prototype.js +4225 -0
- data/test/test_app/public/robots.txt +1 -0
- data/test/test_app/script/about +3 -0
- data/test/test_app/script/breakpointer +3 -0
- data/test/test_app/script/console +3 -0
- data/test/test_app/script/destroy +3 -0
- data/test/test_app/script/generate +3 -0
- data/test/test_app/script/performance/benchmarker +3 -0
- data/test/test_app/script/performance/profiler +3 -0
- data/test/test_app/script/performance/request +3 -0
- data/test/test_app/script/plugin +3 -0
- data/test/test_app/script/process/inspector +3 -0
- data/test/test_app/script/process/reaper +3 -0
- data/test/test_app/script/process/spawner +3 -0
- data/test/test_app/script/runner +3 -0
- data/test/test_app/script/server +3 -0
- data/test/test_app/test/functional/db_fast_controller_test.rb +18 -0
- data/test/test_app/test/functional/fast_controller_test.rb +18 -0
- data/test/test_app/test/functional/slow_controller_test.rb +18 -0
- data/test/test_app/test/functional/very_slow_controller_test.rb +18 -0
- metadata +193 -36
- data/Manifest.txt +0 -25
- data/README.txt +0 -1
- data/config/hoe.rb +0 -70
- data/config/requirements.rb +0 -17
- data/script/destroy +0 -14
- data/script/generate +0 -14
- data/script/txt2html +0 -74
- data/tasks/deployment.rake +0 -27
- data/tasks/environment.rake +0 -7
- data/tasks/website.rake +0 -17
- data/website/javascripts/rounded_corners_lite.inc.js +0 -285
- data/website/stylesheets/screen.css +0 -144
- data/website/template.rhtml +0 -53
@@ -1,144 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
background-color: white;
|
3
|
-
font-family: "Georgia", sans-serif;
|
4
|
-
font-size: 16px;
|
5
|
-
line-height: 1.6em;
|
6
|
-
padding: 1.6em 0 0 0;
|
7
|
-
color: #333;
|
8
|
-
}
|
9
|
-
h1, h2, h3, h4, h5, h6 {
|
10
|
-
color: #444;
|
11
|
-
}
|
12
|
-
h1 {
|
13
|
-
font-family: sans-serif;
|
14
|
-
font-weight: normal;
|
15
|
-
font-size: 4em;
|
16
|
-
line-height: 0.8em;
|
17
|
-
letter-spacing: -0.1ex;
|
18
|
-
margin: 5px;
|
19
|
-
}
|
20
|
-
h4 {
|
21
|
-
margin-bottom: 0;
|
22
|
-
}
|
23
|
-
ul {
|
24
|
-
margin-top: 0;
|
25
|
-
}
|
26
|
-
li {
|
27
|
-
padding: 0;
|
28
|
-
margin: 0;
|
29
|
-
list-style-type: square;
|
30
|
-
}
|
31
|
-
a {
|
32
|
-
color: #00266F;
|
33
|
-
font-weight: normal;
|
34
|
-
text-decoration: underline;
|
35
|
-
}
|
36
|
-
blockquote {
|
37
|
-
font-size: 90%;
|
38
|
-
font-style: italic;
|
39
|
-
border-left: 1px solid #111;
|
40
|
-
padding-left: 1em;
|
41
|
-
}
|
42
|
-
.caps {
|
43
|
-
font-size: 80%;
|
44
|
-
}
|
45
|
-
|
46
|
-
#main {
|
47
|
-
width: 45em;
|
48
|
-
padding: 0;
|
49
|
-
margin: 0 auto;
|
50
|
-
}
|
51
|
-
.coda {
|
52
|
-
text-align: right;
|
53
|
-
color: #444;
|
54
|
-
font-size: smaller;
|
55
|
-
}
|
56
|
-
|
57
|
-
table {
|
58
|
-
font-size: 90%;
|
59
|
-
line-height: 1.4em;
|
60
|
-
color: #ff8;
|
61
|
-
background-color: #111;
|
62
|
-
padding: 2px 10px 2px 10px;
|
63
|
-
border-style: dashed;
|
64
|
-
}
|
65
|
-
|
66
|
-
th {
|
67
|
-
color: #fff;
|
68
|
-
}
|
69
|
-
|
70
|
-
td {
|
71
|
-
padding: 2px 10px 2px 10px;
|
72
|
-
}
|
73
|
-
|
74
|
-
.success {
|
75
|
-
color: #0CC52B;
|
76
|
-
}
|
77
|
-
|
78
|
-
.failed {
|
79
|
-
color: #E90A1B;
|
80
|
-
}
|
81
|
-
|
82
|
-
.unknown {
|
83
|
-
color: #995000;
|
84
|
-
}
|
85
|
-
pre, code {
|
86
|
-
overflow: auto;
|
87
|
-
font-family: monospace;
|
88
|
-
font-size: 90%;
|
89
|
-
line-height: 1.4em;
|
90
|
-
color: #ff8;
|
91
|
-
background-color: #111;
|
92
|
-
padding: 2px 10px 2px 10px;
|
93
|
-
}
|
94
|
-
.comment { color: #aaa; font-style: italic; }
|
95
|
-
.keyword { color: #eff; font-weight: bold; }
|
96
|
-
.punct { color: #eee; font-weight: bold; }
|
97
|
-
.symbol { color: #0bb; }
|
98
|
-
.string { color: #6b4; }
|
99
|
-
.ident { color: #ff8; }
|
100
|
-
.constant { color: #66f; }
|
101
|
-
.regex { color: #ec6; }
|
102
|
-
.number { color: #F99; }
|
103
|
-
.expr { color: #227; }
|
104
|
-
|
105
|
-
#version {
|
106
|
-
float: right;
|
107
|
-
text-align: right;
|
108
|
-
font-family: sans-serif;
|
109
|
-
font-weight: normal;
|
110
|
-
background-color: #7CBBFF;
|
111
|
-
color: #7CBBFF;
|
112
|
-
padding: 15px 20px 10px 20px;
|
113
|
-
margin: 0 auto;
|
114
|
-
margin-top: 15px;
|
115
|
-
border: 3px solid #141331;
|
116
|
-
}
|
117
|
-
|
118
|
-
#version .numbers {
|
119
|
-
display: block;
|
120
|
-
font-size: 4em;
|
121
|
-
line-height: 0.8em;
|
122
|
-
letter-spacing: -0.1ex;
|
123
|
-
margin-bottom: 15px;
|
124
|
-
}
|
125
|
-
|
126
|
-
#version p {
|
127
|
-
text-decoration: none;
|
128
|
-
color: #141331;
|
129
|
-
background-color: #7CBBFF;
|
130
|
-
margin: 0;
|
131
|
-
padding: 0;
|
132
|
-
}
|
133
|
-
|
134
|
-
#version a {
|
135
|
-
text-decoration: none;
|
136
|
-
color: #141331;
|
137
|
-
background-color: #7CBBFF;
|
138
|
-
}
|
139
|
-
|
140
|
-
.clickable {
|
141
|
-
cursor: pointer;
|
142
|
-
cursor: hand;
|
143
|
-
}
|
144
|
-
|
data/website/template.rhtml
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<title>
|
8
|
-
<%= title %>
|
9
|
-
</title>
|
10
|
-
<script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
|
11
|
-
<style>
|
12
|
-
|
13
|
-
</style>
|
14
|
-
<script type="text/javascript">
|
15
|
-
window.onload = function() {
|
16
|
-
settings = {
|
17
|
-
tl: { radius: 10 },
|
18
|
-
tr: { radius: 10 },
|
19
|
-
bl: { radius: 10 },
|
20
|
-
br: { radius: 10 },
|
21
|
-
antiAlias: true,
|
22
|
-
autoPad: true,
|
23
|
-
validTags: ["div"]
|
24
|
-
}
|
25
|
-
var versionBox = new curvyCorners(settings, document.getElementById("version"));
|
26
|
-
versionBox.applyCornersToAll();
|
27
|
-
}
|
28
|
-
</script>
|
29
|
-
</head>
|
30
|
-
<body>
|
31
|
-
<div id="main">
|
32
|
-
|
33
|
-
<h1><%= title %></h1>
|
34
|
-
<div id="version" class="clickable" onclick='document.location = "<%= download %>"; return false'>
|
35
|
-
<p>Get Version</p>
|
36
|
-
<a href="<%= download %>" class="numbers"><%= version %></a>
|
37
|
-
</div>
|
38
|
-
<%= body %>
|
39
|
-
<p class="coda">
|
40
|
-
<a href="http://pauldowman.com/contact/">Paul Dowman</a>, <%= modified.pretty %><br>
|
41
|
-
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
42
|
-
</p>
|
43
|
-
</div>
|
44
|
-
|
45
|
-
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
|
46
|
-
</script>
|
47
|
-
<script type="text/javascript">
|
48
|
-
_uacct = "UA-2759652-1";
|
49
|
-
urchinTracker();
|
50
|
-
</script>
|
51
|
-
|
52
|
-
</body>
|
53
|
-
</html>
|