ec2onrails 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +55 -1
- data/config/hoe.rb +1 -1
- data/lib/ec2onrails/recipes.rb +18 -11
- data/lib/ec2onrails/version.rb +3 -3
- data/website/index.html +28 -116
- data/website/index.txt +24 -77
- data/website/stylesheets/screen.css +1 -0
- metadata +73 -48
data/History.txt
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
== 0.9.6 2007-12-21
|
2
|
+
|
3
|
+
* ami-e620c58f (32-bit) and ami-f920c590 (64-bit)
|
4
|
+
* This is another test release, still not intended to be production-ready until it's tested more thoroughly. Look for version 1.0. Soon!!
|
5
|
+
* Fixed server:install_gems task, issue #16006
|
6
|
+
* Fixed db:set_root_password task for Capistrano 2.1, issue #15256
|
7
|
+
* Fixed apache config to remove warning on restart, issue #16213
|
8
|
+
* Removed dependency on tar for server:deploy_files task, now using all-ruby tar lib
|
9
|
+
* Rotate logs (including rails production.log) and archive to S3 daily
|
10
|
+
* Symlink all log files in /mnt/log from /var/log so that programs (e.g. logwatch) that expect them to be in /var/log still work
|
11
|
+
* New script to archive any file to s3
|
12
|
+
* New command-line flags on s3 archive & restore scripts
|
13
|
+
|
1
14
|
== 0.9.5 2007-10-28
|
2
15
|
|
3
16
|
* ami-86c025ef (32-bit) and ami-99c025f0 (64-bit)
|
@@ -24,4 +37,45 @@
|
|
24
37
|
|
25
38
|
== 0.9.3 2007-10-06
|
26
39
|
|
27
|
-
*
|
40
|
+
* ami-a3f91cca
|
41
|
+
* This is another test release, still not intended to be production-ready until it's tested more thoroughly. Look for version 1.0.
|
42
|
+
* There is now a rubygem available with Capistrano tasks.
|
43
|
+
* "admin" user added, server admin cap tasks run as this user
|
44
|
+
* MySQL settings tweaked to reflect large amount of RAM available on EC2 instances.
|
45
|
+
* Fixed missing /etc/mongrel_cluster
|
46
|
+
* Installed more ruby standard lib packages
|
47
|
+
|
48
|
+
== 0.9.2 2007-09-13
|
49
|
+
|
50
|
+
* ami-0cf61365
|
51
|
+
* This is another test release, still not intended to be production-ready until it's tested more thoroughly. Look for version 1.0.
|
52
|
+
* Fixed missing kernel modules
|
53
|
+
|
54
|
+
== 0.9.1 2007-09-11
|
55
|
+
|
56
|
+
* ami-99f712f0
|
57
|
+
* This is another test release, still not intended to be production-ready until it's tested more thoroughly. Look for version 1.0.
|
58
|
+
* Fixed permissions on /var/lib/dhcp3
|
59
|
+
|
60
|
+
== 0.9.0 2007-09-07
|
61
|
+
|
62
|
+
* ami-bdf411d4
|
63
|
+
* First release built with new rake build script, this is a test release, not intended to be production-ready until it's tested more thoroughly.
|
64
|
+
* Amazon EC2 API tools (java-based) no longer installed by default because they're not used on most servers. They're needed only for registering a rebundled image so there's now a script to install them: /usr/local/ec2-on-rails/install_ec2_api_tools.sh. The ruby-based EC2 image tools are still installed.
|
65
|
+
* Removed "http://packages.ubuntu.com/feisty/libs/sun-java6-jre":Java and it's massive list of dependencies because it was only needed for the EC2 API tools. This saved a huge amount of space.
|
66
|
+
* Removed ImageMagick, RMagick and hpricot due to popular demand. There will soon be cap2 tasks to customize which packages and gems are installed.
|
67
|
+
|
68
|
+
== 0.8.1 2007-07-29
|
69
|
+
|
70
|
+
* ami-b79a7fde
|
71
|
+
* Fixed S3 backup cron job.
|
72
|
+
* Added script to restore data from S3 (/usr/local/aws/bin/restore_app_db.rb). This is useful when setting up a staging server to test your deployment, you can have it set up with a copy of your production data to test your migrations.
|
73
|
+
* Rewrite rule now allows images/css on maintenance page
|
74
|
+
* Added empty /etc/apache2/sites-available/app.custom for custom Apache configuration in a separate file (so it can be deployed by rsync more easily).
|
75
|
+
* Added ImageMagick, RMagick and hpricot due to popular demand.
|
76
|
+
|
77
|
+
== 0.8.0 2007-06-20
|
78
|
+
|
79
|
+
* ami-4e907527
|
80
|
+
* Initial release.
|
81
|
+
|
data/config/hoe.rb
CHANGED
@@ -59,7 +59,7 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
|
|
59
59
|
|
60
60
|
# == Optional
|
61
61
|
p.changes = p.paragraphs_of("History.txt", 0..1).join("\\n\\n")
|
62
|
-
p.extra_deps = [['capistrano', '>= 2.0.0']] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
|
62
|
+
p.extra_deps = [['capistrano', '>= 2.0.0'], ['archive-tar-minitar', '>= 0.5.1'], ['optiflag', '>= 0.6.5']] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
|
63
63
|
|
64
64
|
#p.spec_extras = {} # A hash of extra values to set in the gemspec.
|
65
65
|
|
data/lib/ec2onrails/recipes.rb
CHANGED
@@ -18,6 +18,10 @@
|
|
18
18
|
|
19
19
|
require 'fileutils'
|
20
20
|
include FileUtils
|
21
|
+
require 'tmpdir'
|
22
|
+
require 'zlib'
|
23
|
+
require 'archive/tar/minitar'
|
24
|
+
include Archive::Tar
|
21
25
|
|
22
26
|
require 'ec2onrails/version'
|
23
27
|
require 'ec2onrails/capistrano_utils'
|
@@ -119,7 +123,6 @@ Capistrano::Configuration.instance.load do
|
|
119
123
|
end
|
120
124
|
|
121
125
|
desc <<-DESC
|
122
|
-
Set default firewall rules.
|
123
126
|
DESC
|
124
127
|
task :configure_firewall do
|
125
128
|
# TODO
|
@@ -190,7 +193,7 @@ Capistrano::Configuration.instance.load do
|
|
190
193
|
DESC
|
191
194
|
task :set_root_password, :roles => :db do
|
192
195
|
if cfg[:mysql_root_password]
|
193
|
-
run
|
196
|
+
run %{echo "set password for root@localhost=password('#{cfg[:mysql_root_password]}');" | mysql -u root}
|
194
197
|
end
|
195
198
|
end
|
196
199
|
|
@@ -200,7 +203,7 @@ Capistrano::Configuration.instance.load do
|
|
200
203
|
"app-<timestamp>.sql.gz".
|
201
204
|
DESC
|
202
205
|
task :archive, :roles => [:db] do
|
203
|
-
run "/usr/local/ec2onrails/bin/backup_app_db.rb #{cfg[:archive_to_bucket]} app-#{Time.new.strftime('%
|
206
|
+
run "/usr/local/ec2onrails/bin/backup_app_db.rb --bucket #{cfg[:archive_to_bucket]} --file app-#{Time.new.strftime('%Y-%m-%d--%H-%M-%S')}.sql.gz"
|
204
207
|
end
|
205
208
|
|
206
209
|
desc <<-DESC
|
@@ -209,7 +212,7 @@ Capistrano::Configuration.instance.load do
|
|
209
212
|
expected to be the default, "app.sql.gz".
|
210
213
|
DESC
|
211
214
|
task :restore, :roles => [:db] do
|
212
|
-
run "/usr/local/ec2onrails/bin/restore_app_db.rb #{cfg[:restore_from_bucket]}"
|
215
|
+
run "/usr/local/ec2onrails/bin/restore_app_db.rb --bucket #{cfg[:restore_from_bucket]}"
|
213
216
|
end
|
214
217
|
end
|
215
218
|
|
@@ -263,6 +266,7 @@ Capistrano::Configuration.instance.load do
|
|
263
266
|
ch[:data] ||= ""
|
264
267
|
ch[:data] << data
|
265
268
|
if data =~ />\s*$/
|
269
|
+
puts data
|
266
270
|
puts "The gem command is asking for a number:"
|
267
271
|
choice = STDIN.gets
|
268
272
|
ch.send_data(choice)
|
@@ -307,14 +311,17 @@ Capistrano::Configuration.instance.load do
|
|
307
311
|
task :deploy_files, :roles => [:web_admin, :db_admin, :app_admin] do
|
308
312
|
if cfg[:server_config_files_root]
|
309
313
|
begin
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
314
|
+
filename = "config_files.tar"
|
315
|
+
local_file = "#{Dir.tmpdir}/#{filename}"
|
316
|
+
remote_file = "/tmp/#{filename}"
|
317
|
+
FileUtils.cd(cfg[:server_config_files_root]) do
|
318
|
+
File.open(local_file, 'wb') { |tar| Minitar.pack(".", tar) }
|
319
|
+
end
|
320
|
+
put File.read(local_file), remote_file
|
321
|
+
sudo "tar xvf #{remote_file} -o -C /"
|
315
322
|
ensure
|
316
|
-
rm_rf
|
317
|
-
|
323
|
+
rm_rf local_file
|
324
|
+
run "rm -f #{remote_file}"
|
318
325
|
end
|
319
326
|
end
|
320
327
|
end
|
data/lib/ec2onrails/version.rb
CHANGED
@@ -20,10 +20,10 @@ module Ec2onrails #:nodoc:
|
|
20
20
|
module VERSION #:nodoc:
|
21
21
|
MAJOR = 0
|
22
22
|
MINOR = 9
|
23
|
-
TINY =
|
23
|
+
TINY = 6
|
24
24
|
STRING = [MAJOR, MINOR, TINY].join('.')
|
25
25
|
|
26
|
-
AMI_ID_32_BIT = 'ami-
|
27
|
-
AMI_ID_64_BIT = 'ami-
|
26
|
+
AMI_ID_32_BIT = 'ami-e620c58f'
|
27
|
+
AMI_ID_64_BIT = 'ami-f920c590'
|
28
28
|
end
|
29
29
|
end
|
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>EC2 on Rails</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/ec2onrails"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/ec2onrails" class="numbers">0.9.
|
36
|
+
<a href="http://rubyforge.org/projects/ec2onrails" class="numbers">0.9.6</a>
|
37
37
|
</div>
|
38
38
|
<h2>Deploy a Ruby on Rails app on <span class="caps">EC2</span> in five minutes</h2>
|
39
39
|
|
@@ -76,7 +76,8 @@ your Rails app.</p>
|
|
76
76
|
<h2>Using the image</h2>
|
77
77
|
|
78
78
|
|
79
|
-
<p>This documentation will be improved soon, for now hopefully this covers the basics
|
79
|
+
<p>This documentation will be improved soon, for now hopefully this covers the basics.
|
80
|
+
For the <span class="caps">AMI</span> id’s of the current images see the <a href="http://ec2onrails.rubyforge.org/svn/trunk/gem/History.txt">change log</a>.</p>
|
80
81
|
|
81
82
|
|
82
83
|
<h4>1. Install the gem</h4>
|
@@ -111,15 +112,12 @@ to the instance defined in your Capistrano “db” role.</p>
|
|
111
112
|
in Amazon’s getting started guide.</p>
|
112
113
|
|
113
114
|
|
114
|
-
|
115
|
-
|
116
|
-
<li>32-bit: <strong>ami-86c025ef</strong>.</li>
|
117
|
-
<li>64-bit: <strong>ami-99c025f0</strong>.</li>
|
118
|
-
</ul>
|
115
|
+
<p>For the <span class="caps">AMI</span> id’s of the current images see the <a href="http://ec2onrails.rubyforge.org/svn/trunk/gem/History.txt">change log</a>
|
116
|
+
or do <code>cap ec2onrails:ami_ids</code> from within the app that you configured in the previous step.</p>
|
119
117
|
|
120
118
|
|
121
|
-
<p>
|
122
|
-
|
119
|
+
<p>Please see the <a href="http://ec2onrails.rubyforge.org/svn/trunk/gem/History.txt">change log</a> for release notes, and
|
120
|
+
see the <a href="http://rubyforge.org/tracker/?atid=17558&group_id=4552&func=browse">list of open issues</a>.</p>
|
123
121
|
|
124
122
|
|
125
123
|
<p>As is <a href="http://docs.amazonwebservices.com/AWSEC2/2007-08-29/DeveloperGuide/public-ami-guidelines.html">standard for public <span class="caps">AMI</span>’s</a>,
|
@@ -139,7 +137,25 @@ Be sure that you haven’t allowed public access to any ports other than <sp
|
|
139
137
|
If you’re using multiple instances, be sure to allow them network access to each other.</p>
|
140
138
|
|
141
139
|
|
142
|
-
<h4>5.
|
140
|
+
<h4>5. Copy your public key from the server to keep Capistrano happy</h4>
|
141
|
+
|
142
|
+
|
143
|
+
<p>Technically all you should need to connect to the server is the private key file, the public key is on the server.
|
144
|
+
But for some reason Capistrano requires that you have both the public key and the private key files together on the client.</p>
|
145
|
+
|
146
|
+
|
147
|
+
<p>So wherever you stored your private key file, you need to put the public key file beside it, with the extension ”.pub”.
|
148
|
+
You can copy it from the server using scp like this:</p>
|
149
|
+
|
150
|
+
|
151
|
+
<pre>scp -i /home/you/.ssh/your-private-key admin@ec2-xxx....amazonaws.com:.ssh/authorized_keys /home/you/.ssh/your-private-key.pub</pre>
|
152
|
+
|
153
|
+
<p>This uses scp to connect to the server using your private key. It copies the file “authorized_keys” from /home/admin/.ssh/ and
|
154
|
+
saves it in your .ssh dir. So after this you should have two files, one named “yourkey” (this is your private key) and one
|
155
|
+
named (yourkey.pub), this is your public key.</p>
|
156
|
+
|
157
|
+
|
158
|
+
<h4>6. Deploy the app with Capistrano</h4>
|
143
159
|
|
144
160
|
|
145
161
|
<pre>
|
@@ -279,111 +295,7 @@ or send me an <a href="http://pauldowman.com/contact/">email</a>.</p>
|
|
279
295
|
<h2>Change log</h2>
|
280
296
|
|
281
297
|
|
282
|
-
<p>
|
283
|
-
|
284
|
-
|
285
|
-
<h4>0.9.5 ami-86c025ef (32-bit) and ami-99c025f0 (64-bit)</h4>
|
286
|
-
|
287
|
-
|
288
|
-
28 Oct, 2007
|
289
|
-
<ul>
|
290
|
-
<li>This is another test release, still not intended to be production-ready until it’s tested more thoroughly. Look for version 1.0.</li>
|
291
|
-
<li>Fixed rebundling.</li>
|
292
|
-
<li>Generates new ssh keys on first startup.</li>
|
293
|
-
</ul>
|
294
|
-
|
295
|
-
|
296
|
-
<h4>0.9.4, ami-ecc12485 (32-bit) and ami-efc12486 (64-bit)</h4>
|
297
|
-
|
298
|
-
|
299
|
-
7 Oct, 2007
|
300
|
-
<ul>
|
301
|
-
<li>This is another test release, still not intended to be production-ready until it’s tested more thoroughly. Look for version 1.0.</li>
|
302
|
-
<li><a href="http://rubyforge.org/tracker/?func=detail&aid=15047&group_id=4552&atid=17558">The rebundling doesn’t seem to be working</a>.
|
303
|
-
I’ll fix that in a new version.</li>
|
304
|
-
<li>Ubuntu 7.10/Gutsy (This means new versions of almost all packages. Ruby is now 1.8.6.)</li>
|
305
|
-
<li>Experimental multiple instance support.
|
306
|
-
<ul>
|
307
|
-
<li><strong>Mongrel & MySQL now need to listen on the public network interface.</strong> Be sure your firewall settings are correct, and set a MySQL root password (use “cap ec2onrails:db:set_root_password”).</li>
|
308
|
-
</ul>
|
309
|
-
</li>
|
310
|
-
<li>RDoc and RI not generated for installed gems.</li>
|
311
|
-
<li>No longer upgrades packages & gems on ec2onrails:server:setup task.</li>
|
312
|
-
<li>32-bit and 64-bit images.</li>
|
313
|
-
<li><span class="caps">EC2 AMI</span> tools version 2007-08-29.</li>
|
314
|
-
<li><span class="caps">NTP</span> removed, it’s no longer needed under Xen.</li>
|
315
|
-
<li>MySQL data dir dirs now under /mnt.</li>
|
316
|
-
<li>syslog now logs to /mnt/log.</li>
|
317
|
-
<li>Build now cleans apt cache, image is now 1/2 the size.</li>
|
318
|
-
</ul>
|
319
|
-
|
320
|
-
|
321
|
-
<h4>0.9.3, ami-a3f91cca</h4>
|
322
|
-
|
323
|
-
|
324
|
-
23 Oct, 2007
|
325
|
-
<ul>
|
326
|
-
<li>This is another test release, still not intended to be production-ready until it’s tested more thoroughly. Look for version 1.0.</li>
|
327
|
-
<li>There is now a rubygem available with Capistrano tasks.</li>
|
328
|
-
<li>“admin” user added, server admin cap tasks run as this user</li>
|
329
|
-
<li>MySQL settings tweaked to reflect large amount of <span class="caps">RAM</span> available on <span class="caps">EC2</span> instances.</li>
|
330
|
-
<li><a href="issues">http://code.google.com/p/ec2-on-rails/issues/list?can=1&q=label%3AFixed-in-0_9_3</a> fixed in this release</li>
|
331
|
-
</ul>
|
332
|
-
|
333
|
-
|
334
|
-
<h4>0.9.2, ami-0cf61365</h4>
|
335
|
-
|
336
|
-
|
337
|
-
13 Sept, 2007
|
338
|
-
<ul>
|
339
|
-
<li>This is another test release, still not intended to be production-ready until it’s tested more thoroughly. Look for version 1.0.</li>
|
340
|
-
<li><a href="issues">http://code.google.com/p/ec2-on-rails/issues/list?can=1&q=label%3AFixed-in-0_9_2</a> fixed in this release</li>
|
341
|
-
</ul>
|
342
|
-
|
343
|
-
|
344
|
-
<h4>0.9.1, ami-99f712f0</h4>
|
345
|
-
|
346
|
-
|
347
|
-
11 Sept, 2007
|
348
|
-
<ul>
|
349
|
-
<li>This is another test release, still not intended to be production-ready until it’s tested more thoroughly. Look for version 1.0.</li>
|
350
|
-
<li>Fixed permissions on /var/lib/dhcp3</li>
|
351
|
-
<li><a href="issues">http://code.google.com/p/ec2-on-rails/issues/list?can=1&q=label%3AFixed-in-0_9_1</a> fixed in this release</li>
|
352
|
-
</ul>
|
353
|
-
|
354
|
-
|
355
|
-
<h4>0.9.0, ami-bdf411d4</h4>
|
356
|
-
|
357
|
-
|
358
|
-
7 Sept 2007
|
359
|
-
<ul>
|
360
|
-
<li>First release built with new rake build script, this is a test release, not intended to be production-ready until it’s tested more thoroughly.</li>
|
361
|
-
<li>Amazon <span class="caps">EC2 API</span> tools (java-based) no longer installed by default because they’re not used on most servers. They’re needed only for registering a rebundled image so there’s now a script to install them: /usr/local/ec2-on-rails/install_ec2_api_tools.sh. The ruby-based <span class="caps">EC2</span> image tools are still installed.</li>
|
362
|
-
<li>Removed <a href="Java">http://packages.ubuntu.com/feisty/libs/sun-java6-jre</a> and it’s massive list of dependencies because it was only needed for the <span class="caps">EC2 API</span> tools. This saved a huge amount of space.</li>
|
363
|
-
<li>Removed ImageMagick, RMagick and hpricot due to popular demand. There will soon be cap2 tasks to customize which packages and gems are installed.</li>
|
364
|
-
</ul>
|
365
|
-
|
366
|
-
|
367
|
-
<h4>0.8.1, ami-b79a7fde</h4>
|
368
|
-
|
369
|
-
|
370
|
-
29 July 2007
|
371
|
-
<ul>
|
372
|
-
<li>Fixed S3 backup cron job.</li>
|
373
|
-
<li>Added script to restore data from S3 (/usr/local/aws/bin/restore_app_db.rb). This is useful when setting up a staging server to test your deployment, you can have it set up with a copy of your production data to test your migrations.</li>
|
374
|
-
<li>Rewrite rule now allows images/css on maintenance page</li>
|
375
|
-
<li>Added empty /etc/apache2/sites-available/app.custom for custom Apache configuration in a separate file (so it can be deployed by rsync more easily).</li>
|
376
|
-
<li>Added ImageMagick, RMagick and hpricot due to popular demand.</li>
|
377
|
-
</ul>
|
378
|
-
|
379
|
-
|
380
|
-
<h4>0.8.0, ami-4e907527</h4>
|
381
|
-
|
382
|
-
|
383
|
-
20 June 2007
|
384
|
-
<ul>
|
385
|
-
<li>Initial release.</li>
|
386
|
-
</ul>
|
298
|
+
<p>See the <a href="http://ec2onrails.rubyforge.org/svn/trunk/gem/History.txt">change log</a>.</p>
|
387
299
|
|
388
300
|
|
389
301
|
<h2>How to submit patches</h2>
|
@@ -400,7 +312,7 @@ or send me an <a href="http://pauldowman.com/contact/">email</a>.</p>
|
|
400
312
|
|
401
313
|
<p>This code is free to use under the terms of the <span class="caps">GPL</span> v2.</p>
|
402
314
|
<p class="coda">
|
403
|
-
<a href="http://pauldowman.com/contact/">Paul Dowman</a>,
|
315
|
+
<a href="http://pauldowman.com/contact/">Paul Dowman</a>, 21st December 2007<br>
|
404
316
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
405
317
|
</p>
|
406
318
|
</div>
|
data/website/index.txt
CHANGED
@@ -34,7 +34,9 @@ Features of the EC2 image:
|
|
34
34
|
|
35
35
|
h2. Using the image
|
36
36
|
|
37
|
-
This documentation will be improved soon, for now hopefully this covers the basics.
|
37
|
+
This documentation will be improved soon, for now hopefully this covers the basics.
|
38
|
+
For the AMI id's of the current images see the "change log":http://ec2onrails.rubyforge.org/svn/trunk/gem/History.txt.
|
39
|
+
|
38
40
|
|
39
41
|
h4. 1. Install the gem
|
40
42
|
|
@@ -61,12 +63,11 @@ Soon there will be a Capistrano task to do this for you. In the meantime read th
|
|
61
63
|
"running an instance section":http://docs.amazonwebservices.com/AWSEC2/2007-08-29/GettingStartedGuide/running-an-instance.html
|
62
64
|
in Amazon's getting started guide.
|
63
65
|
|
64
|
-
|
65
|
-
|
66
|
-
* 64-bit: *ami-99c025f0*.
|
66
|
+
For the AMI id's of the current images see the "change log":http://ec2onrails.rubyforge.org/svn/trunk/gem/History.txt
|
67
|
+
or do <code>cap ec2onrails:ami_ids</code> from within the app that you configured in the previous step.
|
67
68
|
|
68
|
-
|
69
|
-
|
69
|
+
Please see the "change log":http://ec2onrails.rubyforge.org/svn/trunk/gem/History.txt for release notes, and
|
70
|
+
see the "list of open issues":http://rubyforge.org/tracker/?atid=17558&group_id=4552&func=browse.
|
70
71
|
|
71
72
|
As is "standard for public AMI's":http://docs.amazonwebservices.com/AWSEC2/2007-08-29/DeveloperGuide/public-ami-guidelines.html,
|
72
73
|
password-based logins are disabled. You log in with your own
|
@@ -83,7 +84,22 @@ Be sure that you haven't allowed public access to any ports other than TCP 22 an
|
|
83
84
|
If you're using multiple instances, be sure to allow them network access to each other.
|
84
85
|
|
85
86
|
|
86
|
-
h4. 5.
|
87
|
+
h4. 5. Copy your public key from the server to keep Capistrano happy
|
88
|
+
|
89
|
+
Technically all you should need to connect to the server is the private key file, the public key is on the server.
|
90
|
+
But for some reason Capistrano requires that you have both the public key and the private key files together on the client.
|
91
|
+
|
92
|
+
So wherever you stored your private key file, you need to put the public key file beside it, with the extension ".pub".
|
93
|
+
You can copy it from the server using scp like this:
|
94
|
+
|
95
|
+
<pre>scp -i /home/you/.ssh/your-private-key admin@ec2-xxx....amazonaws.com:.ssh/authorized_keys /home/you/.ssh/your-private-key.pub</pre>
|
96
|
+
|
97
|
+
This uses scp to connect to the server using your private key. It copies the file "authorized_keys" from /home/admin/.ssh/ and
|
98
|
+
saves it in your .ssh dir. So after this you should have two files, one named "yourkey" (this is your private key) and one
|
99
|
+
named (yourkey.pub), this is your public key.
|
100
|
+
|
101
|
+
|
102
|
+
h4. 6. Deploy the app with Capistrano
|
87
103
|
|
88
104
|
<pre>
|
89
105
|
cap ec2onrails:setup
|
@@ -196,76 +212,7 @@ or send me an "email":http://pauldowman.com/contact/.
|
|
196
212
|
|
197
213
|
h2. Change log
|
198
214
|
|
199
|
-
|
200
|
-
|
201
|
-
h4. 0.9.5 ami-86c025ef (32-bit) and ami-99c025f0 (64-bit)
|
202
|
-
|
203
|
-
28 Oct, 2007
|
204
|
-
* This is another test release, still not intended to be production-ready until it's tested more thoroughly. Look for version 1.0.
|
205
|
-
* Fixed rebundling.
|
206
|
-
* Generates new ssh keys on first startup.
|
207
|
-
|
208
|
-
h4. 0.9.4, ami-ecc12485 (32-bit) and ami-efc12486 (64-bit)
|
209
|
-
|
210
|
-
7 Oct, 2007
|
211
|
-
* This is another test release, still not intended to be production-ready until it's tested more thoroughly. Look for version 1.0.
|
212
|
-
* "The rebundling doesn't seem to be working":http://rubyforge.org/tracker/?func=detail&aid=15047&group_id=4552&atid=17558.
|
213
|
-
I'll fix that in a new version.
|
214
|
-
* Ubuntu 7.10/Gutsy (This means new versions of almost all packages. Ruby is now 1.8.6.)
|
215
|
-
* Experimental multiple instance support.
|
216
|
-
** *Mongrel & MySQL now need to listen on the public network interface.* Be sure your firewall settings are correct, and set a MySQL root password (use "cap ec2onrails:db:set_root_password").
|
217
|
-
* RDoc and RI not generated for installed gems.
|
218
|
-
* No longer upgrades packages & gems on ec2onrails:server:setup task.
|
219
|
-
* 32-bit and 64-bit images.
|
220
|
-
* EC2 AMI tools version 2007-08-29.
|
221
|
-
* NTP removed, it's no longer needed under Xen.
|
222
|
-
* MySQL data dir dirs now under /mnt.
|
223
|
-
* syslog now logs to /mnt/log.
|
224
|
-
* Build now cleans apt cache, image is now 1/2 the size.
|
225
|
-
|
226
|
-
h4. 0.9.3, ami-a3f91cca
|
227
|
-
|
228
|
-
23 Oct, 2007
|
229
|
-
* This is another test release, still not intended to be production-ready until it's tested more thoroughly. Look for version 1.0.
|
230
|
-
* There is now a rubygem available with Capistrano tasks.
|
231
|
-
* "admin" user added, server admin cap tasks run as this user
|
232
|
-
* MySQL settings tweaked to reflect large amount of RAM available on EC2 instances.
|
233
|
-
* "http://code.google.com/p/ec2-on-rails/issues/list?can=1&q=label%3AFixed-in-0_9_3":issues fixed in this release
|
234
|
-
|
235
|
-
h4. 0.9.2, ami-0cf61365
|
236
|
-
|
237
|
-
13 Sept, 2007
|
238
|
-
* This is another test release, still not intended to be production-ready until it's tested more thoroughly. Look for version 1.0.
|
239
|
-
* "http://code.google.com/p/ec2-on-rails/issues/list?can=1&q=label%3AFixed-in-0_9_2":issues fixed in this release
|
240
|
-
|
241
|
-
h4. 0.9.1, ami-99f712f0
|
242
|
-
|
243
|
-
11 Sept, 2007
|
244
|
-
* This is another test release, still not intended to be production-ready until it's tested more thoroughly. Look for version 1.0.
|
245
|
-
* Fixed permissions on /var/lib/dhcp3
|
246
|
-
* "http://code.google.com/p/ec2-on-rails/issues/list?can=1&q=label%3AFixed-in-0_9_1":issues fixed in this release
|
247
|
-
|
248
|
-
h4. 0.9.0, ami-bdf411d4
|
249
|
-
|
250
|
-
7 Sept 2007
|
251
|
-
* First release built with new rake build script, this is a test release, not intended to be production-ready until it's tested more thoroughly.
|
252
|
-
* Amazon EC2 API tools (java-based) no longer installed by default because they're not used on most servers. They're needed only for registering a rebundled image so there's now a script to install them: /usr/local/ec2-on-rails/install_ec2_api_tools.sh. The ruby-based EC2 image tools are still installed.
|
253
|
-
* Removed "http://packages.ubuntu.com/feisty/libs/sun-java6-jre":Java and it's massive list of dependencies because it was only needed for the EC2 API tools. This saved a huge amount of space.
|
254
|
-
* Removed ImageMagick, RMagick and hpricot due to popular demand. There will soon be cap2 tasks to customize which packages and gems are installed.
|
255
|
-
|
256
|
-
h4. 0.8.1, ami-b79a7fde
|
257
|
-
|
258
|
-
29 July 2007
|
259
|
-
* Fixed S3 backup cron job.
|
260
|
-
* Added script to restore data from S3 (/usr/local/aws/bin/restore_app_db.rb). This is useful when setting up a staging server to test your deployment, you can have it set up with a copy of your production data to test your migrations.
|
261
|
-
* Rewrite rule now allows images/css on maintenance page
|
262
|
-
* Added empty /etc/apache2/sites-available/app.custom for custom Apache configuration in a separate file (so it can be deployed by rsync more easily).
|
263
|
-
* Added ImageMagick, RMagick and hpricot due to popular demand.
|
264
|
-
|
265
|
-
h4. 0.8.0, ami-4e907527
|
266
|
-
|
267
|
-
20 June 2007
|
268
|
-
* Initial release.
|
215
|
+
See the "change log":http://ec2onrails.rubyforge.org/svn/trunk/gem/History.txt.
|
269
216
|
|
270
217
|
|
271
218
|
h2. How to submit patches
|
metadata
CHANGED
@@ -1,33 +1,56 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.2
|
3
|
-
specification_version: 1
|
4
2
|
name: ec2onrails
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.9.
|
7
|
-
|
8
|
-
summary: Client-side libraries (Capistrano tasks) for managing and deploying to EC2 on Rails servers.
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email: paul@pauldowman.com
|
12
|
-
homepage: http://ec2onrails.rubyforge.org
|
13
|
-
rubyforge_project: ec2onrails
|
14
|
-
description: Client-side libraries (Capistrano tasks) for managing and deploying to EC2 on Rails servers.
|
15
|
-
autorequire:
|
16
|
-
default_executable:
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: true
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 0.0.0
|
24
|
-
version:
|
25
|
-
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
4
|
+
version: 0.9.6
|
5
|
+
platform: ""
|
29
6
|
authors:
|
30
7
|
- Paul Dowman
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2007-12-21 00:00:00 -05:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: capistrano
|
17
|
+
version_requirement:
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.0.0
|
23
|
+
version:
|
24
|
+
- !ruby/object:Gem::Dependency
|
25
|
+
name: archive-tar-minitar
|
26
|
+
version_requirement:
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: 0.5.1
|
32
|
+
version:
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: optiflag
|
35
|
+
version_requirement:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.6.5
|
41
|
+
version:
|
42
|
+
description: Client-side libraries (Capistrano tasks) for managing and deploying to EC2 on Rails servers.
|
43
|
+
email: paul@pauldowman.com
|
44
|
+
executables: []
|
45
|
+
|
46
|
+
extensions: []
|
47
|
+
|
48
|
+
extra_rdoc_files:
|
49
|
+
- History.txt
|
50
|
+
- COPYING.txt
|
51
|
+
- Manifest.txt
|
52
|
+
- README.txt
|
53
|
+
- website/index.txt
|
31
54
|
files:
|
32
55
|
- History.txt
|
33
56
|
- COPYING.txt
|
@@ -55,31 +78,33 @@ files:
|
|
55
78
|
- website/javascripts/rounded_corners_lite.inc.js
|
56
79
|
- website/stylesheets/screen.css
|
57
80
|
- website/template.rhtml
|
58
|
-
|
59
|
-
|
60
|
-
|
81
|
+
has_rdoc: true
|
82
|
+
homepage: http://ec2onrails.rubyforge.org
|
83
|
+
post_install_message:
|
61
84
|
rdoc_options:
|
62
85
|
- --main
|
63
86
|
- README.txt
|
64
|
-
|
65
|
-
-
|
66
|
-
|
67
|
-
|
68
|
-
-
|
69
|
-
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
87
|
+
require_paths:
|
88
|
+
- lib
|
89
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: "0"
|
94
|
+
version:
|
95
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: "0"
|
100
|
+
version:
|
74
101
|
requirements: []
|
75
102
|
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
version: 2.0.0
|
85
|
-
version:
|
103
|
+
rubyforge_project: ec2onrails
|
104
|
+
rubygems_version: 0.9.5
|
105
|
+
signing_key:
|
106
|
+
specification_version: 2
|
107
|
+
summary: Client-side libraries (Capistrano tasks) for managing and deploying to EC2 on Rails servers.
|
108
|
+
test_files:
|
109
|
+
- test/test_ec2onrails.rb
|
110
|
+
- test/test_helper.rb
|