<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>I.D.E.A.中文站 &#187; ec2</title>
	<atom:link href="http://www.tzhang.com/blog/tag/ec2/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tzhang.com/blog</link>
	<description>沉淀生活点滴.zZ</description>
	<lastBuildDate>Sat, 14 Jan 2012 14:47:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Heroku试用体会</title>
		<link>http://www.tzhang.com/blog/2009/08/27/heroku-sinatra-experience</link>
		<comments>http://www.tzhang.com/blog/2009/08/27/heroku-sinatra-experience#comments</comments>
		<pubDate>Thu, 27 Aug 2009 03:07:18 +0000</pubDate>
		<dc:creator>Deep Blue</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[google map]]></category>
		<category><![CDATA[heroku]]></category>
		<category><![CDATA[sinatra]]></category>
		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://www.tzhang.com/blog/?p=527</guid>
		<description><![CDATA[上一篇的sinatra应用部署在了heroku上。经过几天的试用有几点体会 1. Heroku是架构在Amazon EC2上的，具有不错的扩展性，只要你有钱，拖拉一下鼠标就能实现scaling了。这一点着实很方便。当然代价是价格会比EC2高，毕竟人家提供了增值服务嘛。具体高多少很难比较，连heroku的老板都说对应关系很复杂。基本上要是网站做大了，用heroku就不合算了。 2. 不烧包的就用heroku的free配置，只有一个dyno的，5M存储空间，可以支持绑定自己的域名。 3. 近期遭遇了几次request time out,因此查了一下heroku doc，dyno基本上把它看成一个线程吧，换句话说，这个一个dyno的free版只能支持并发度为1的压力。因此并发连接多的化，你会经常看到time out的。计算容量也是比较寒酸，用ab -n 10 url测一下，10个请求4个fail掉了orz. 看来免费的午餐也不好用啊。大家用来做原型demo就好了，验证好了自己找地方去deploy也挺好。 update：不知道是这次测试当时受海底光缆受损的影响还是其他原因导致结果很差，后来新的测试比较正常，后面我贴了一个新的benchmarking的测试结果。free的计划还是可以承受一些负载压力的。特此给heroku正名 4. heroku提供了deploy代码的好方案，但在DB方面限于技术原因，还比较薄弱，mysql什么的还是用不起来。 5. google map API是跟域名相关的，如果没有自己的域名的话，部署到xxxx.heroku.com这种子域名下面是不能用的，想必早有人在heroku下面申请了key, 后来者都会遇到冲突。花钱买自己域名吧 6. Heroku的想法不错，这也难怪他们会积攒了数万用户，也得到了300万美元的投资。云计算，不再是一个概念了，已经有若干成熟的方案面向消费者了。这一点要向先行者amazon致敬 7，最后一点就是heroku的支持做的不怎么样，文档也很不完整。遇到问题还是要自己摸索解决。 add-on: AB benchmarking result:做了两个测试，一个是简单到极致的逻辑，另一个相反，是复杂到极致的逻辑，看看两个边界状况的对比和共性应该更能说明问题：case1表现不错（里面就两行code当然不错了，呵呵），case2太复杂了，failed了88个（一共100个请求，FT）. case1: light code: localhost:sinatra tony$ ab -n 100 -c 10 http://ip2loc.dazhe.me/counter/ This is ApacheBench, Version 2.3 < $Revision: 655654 $> Copyright 1996 Adam Twiss, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tzhang.com/blog/2009/08/25/sinatra-heroku-gae-google-map-prototyping">上一篇的sinatra应用</a>部署在了heroku上。经过几天的试用有几点体会</p>
<p>1. Heroku是架构在Amazon EC2上的，具有不错的扩展性，只要你有钱，拖拉一下鼠标就能实现scaling了。这一点着实很方便。当然代价是价格会比EC2高，毕竟人家提供了增值服务嘛。具体高多少很难比较，连heroku的老板都说对应关系很复杂。基本上要是网站做大了，用heroku就不合算了。</p>
<p>2. 不烧包的就用heroku的free配置，只有一个dyno的，5M存储空间，可以支持绑定自己的域名。</p>
<p>3. 近期遭遇了几次request time out,因此查了一下heroku doc，dyno基本上把它看成一个线程吧，换句话说，这个一个dyno的free版只能支持并发度为1的压力。因此并发连接多的化，你会经常看到time out的。<del datetime="2009-09-03T02:29:56+00:00">计算容量也是比较寒酸，用ab -n 10 url测一下，10个请求4个fail掉了orz. 看来免费的午餐也不好用啊。大家用来做原型demo就好了，验证好了自己找地方去deploy也挺好。</del><br />
<strong></p>
<p>update：不知道是这次测试当时受海底光缆受损的影响还是其他原因导致结果很差，后来新的测试比较正常，后面我贴了一个新的benchmarking的测试结果。free的计划还是可以承受一些负载压力的。特此给heroku正名</strong></p>
<p>4. heroku提供了deploy代码的好方案，但在DB方面限于技术原因，还比较薄弱，mysql什么的还是用不起来。</p>
<p>5. google map API是跟域名相关的，如果没有自己的域名的话，部署到xxxx.heroku.com这种子域名下面是不能用的，想必早有人在heroku下面申请了key, 后来者都会遇到冲突。花钱买自己域名吧</p>
<p>6. Heroku的想法不错，这也难怪他们会积攒了数万用户，也得到了300万美元的投资。云计算，不再是一个概念了，已经有若干成熟的方案面向消费者了。这一点要向先行者amazon致敬</p>
<p>7，最后一点就是heroku的支持做的不怎么样，文档也很不完整。遇到问题还是要自己摸索解决。</p>
<p>add-on: AB benchmarking result:做了两个测试，一个是简单到极致的逻辑，另一个相反，是复杂到极致的逻辑，看看两个边界状况的对比和共性应该更能说明问题：case1表现不错（里面就两行code当然不错了，呵呵），case2太复杂了，failed了88个（一共100个请求，FT）. </p>
<p><strong>case1: light code:</strong><br />
localhost:sinatra tony$ ab -n 100 -c 10 http://ip2loc.dazhe.me/counter/<br />
This is ApacheBench, Version 2.3 < $Revision: 655654 $><br />
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br />
Licensed to The Apache Software Foundation, http://www.apache.org/</p>
<p>Benchmarking ip2loc.dazhe.me (be patient)&#8230;..done</p>
<p>Server Software:        nginx/0.6.38<br />
Server Hostname:        ip2loc.dazhe.me<br />
Server Port:            80</p>
<p>Document Path:          /counter/<br />
Document Length:        15 bytes</p>
<p>Concurrency Level:      10<br />
Time taken for tests:   7.828 seconds<br />
Complete requests:      100<br />
Failed requests:        0<br />
Write errors:           0<br />
Non-2xx responses:      100<br />
Total transferred:      26200 bytes<br />
HTML transferred:       1500 bytes<br />
<strong>Requests per second:    12.77 [#/sec] (mean)</strong><br />
Time per request:       782.820 [ms] (mean)<br />
Time per request:       78.282 [ms] (mean, across all concurrent requests)<br />
Transfer rate:          3.27 [Kbytes/sec] received</p>
<p>Connection Times (ms)<br />
              min  mean[+/-sd] median   max<br />
Connect:      309  389 192.2    317    1233<br />
Processing:   316  378 272.2    337    3050<br />
Waiting:      314  377 272.3    335    3050<br />
Total:        627  767 332.5    661    3370</p>
<p>Percentage of the requests served within a certain time (ms)<br />
  50%    661<br />
  66%    677<br />
  75%    705<br />
  80%    815<br />
  90%   1017<br />
  95%   1543<br />
  98%   1570<br />
  99%   3370<br />
 100%   3370 (longest request)</p>
<p><strong>case2: heavy code:</strong><br />
localhost:sinatra tony$ ab -n 100 -c 10 http://ip2loc.dazhe.me/<br />
This is ApacheBench, Version 2.3 < $Revision: 655654 $><br />
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br />
Licensed to The Apache Software Foundation, http://www.apache.org/</p>
<p>Benchmarking ip2loc.dazhe.me (be patient)&#8230;..done</p>
<p>Server Software:        nginx/0.6.38<br />
Server Hostname:        ip2loc.dazhe.me<br />
Server Port:            80</p>
<p>Document Path:          /<br />
Document Length:        696 bytes</p>
<p>Concurrency Level:      10<br />
Time taken for tests:   24.932 seconds<br />
Complete requests:      100<br />
Failed requests:        88<br />
   (Connect: 0, Receive: 0, Length: 88, Exceptions: 0)<br />
Write errors:           0<br />
Non-2xx responses:      88<br />
Total transferred:      36676 bytes<br />
HTML transferred:       10992 bytes<br />
<strong>Requests per second:    4.01 [#/sec] (mean)<br />
</strong>Time per request:       2493.243 [ms] (mean)<br />
Time per request:       249.324 [ms] (mean, across all concurrent requests)<br />
Transfer rate:          1.44 [Kbytes/sec] received</p>
<p>Connection Times (ms)<br />
              min  mean[+/-sd] median   max<br />
Connect:      310  328  28.1    316     410<br />
Processing:   614 2067 790.9   1961    3904<br />
Waiting:      613 2066 790.9   1960    3903<br />
Total:        977 2395 788.1   2370    4214</p>
<p>Percentage of the requests served within a certain time (ms)<br />
  50%   2370<br />
  66%   2645<br />
  75%   2888<br />
  80%   3086<br />
  90%   3569<br />
  95%   4036<br />
  98%   4177<br />
  99%   4214<br />
 100%   4214 (longest request)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tzhang.com/blog/2009/08/27/heroku-sinatra-experience/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>用Ruby on Rails开发Facebook应用(6) &#8211; More on Amazon EC2</title>
		<link>http://www.tzhang.com/blog/2008/09/22/facebook-app-by-ruby-on-rails-more-on-amazon-ec2</link>
		<comments>http://www.tzhang.com/blog/2008/09/22/facebook-app-by-ruby-on-rails-more-on-amazon-ec2#comments</comments>
		<pubDate>Sun, 21 Sep 2008 17:58:45 +0000</pubDate>
		<dc:creator>Deep Blue</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.tzhang.com/blog/?p=286</guid>
		<description><![CDATA[如果你看过了上一篇关于用Amazon EC2作为Ruby on Rails的server的文章的话，这里还有一些补充。 EC2onrails是包含一个AMI和gem的RoR Deployment解决方案。现成的系统和gem让你的deploy非常简单。不过，AMI里面的Apache是你想用的么？各项配置是否正如你所愿？如果不是的话，我们有没有别的选择呢？ 答案是肯定的。还有不少方法可以帮助你快速的deploy ROR application: 首先说heroku.com 专门针对ror的一揽子解决方案，你可以在线上创建rails app,在线编辑，部署。因为Heroku本来就是跑在Amazon EC2上的。所以你的Rails app自然也跑在上边了。不过heroku是个商业网站，虽然现在beta阶段我们可以上去随便编辑和部署（简单的，多服务器的肯定不会让你免费来），以后的收费可不好说，另外要使用额外的资源，清提交申请并乖乖奉上银子。建议初学者学习rails的时候玩玩。可以省下setup生产环境的时间。 rightscale.com也是大名鼎鼎（有用的功能也收钱），不过上去试用了一番，实在用不惯，直接放弃研究了。清各位看官自行探索 说说免费的拉，Elastic Rails是一个plugin (plugin 有plugin的好处)。因为有下面的视频短篇，我就不多说了。我最喜欢screencast了。简单明了: http://s3.amazonaws.com/rc_files/elastic-rails.html 需要指出的是它的网站一直上不去，不知道是不是墙的问题 Capazon 与上面类似: http://soylentfoo.jnewland.com/articles/2007/04/30/capazon-0-2-released-capistrano-2-0-compatible Rubber: http://github.com/wr0ngway/rubber/wikis/faq 具体用哪一种方案请各取所需]]></description>
			<content:encoded><![CDATA[<p>如果你看过了上一篇关于<a href="http://www.tzhang.com/blog/2008/09/16/develop-facebook-app-using-ruby-on-rails-5">用Amazon EC2作为Ruby on Rails的server的文章</a>的话，这里还有一些补充。</p>
<p>EC2onrails是包含一个AMI和gem的RoR Deployment解决方案。现成的系统和gem让你的deploy非常简单。不过，AMI里面的Apache是你想用的么？各项配置是否正如你所愿？如果不是的话，我们有没有别的选择呢？</p>
<p>答案是肯定的。还有不少方法可以帮助你快速的deploy ROR application:</p>
<p>首先说<a href="http://www.heroku.com">heroku.com</a> 专门针对ror的一揽子解决方案，你可以在线上创建rails app,在线编辑，部署。因为Heroku本来就是跑在Amazon EC2上的。所以你的Rails app自然也跑在上边了。不过heroku是个商业网站，虽然现在beta阶段我们可以上去随便编辑和部署（简单的，多服务器的肯定不会让你免费来），以后的收费可不好说，另外要使用额外的资源，清提交申请并乖乖奉上银子。建议初学者学习rails的时候玩玩。可以省下setup生产环境的时间。</p>
<p><a href="http://rightscale.com">rightscale.com</a>也是大名鼎鼎（有用的功能也收钱），不过上去试用了一番，实在用不惯，直接放弃研究了。清各位看官自行探索</p>
<p>说说免费的拉，Elastic Rails是一个plugin (plugin 有plugin的好处)。因为有下面的视频短篇，我就不多说了。我最喜欢screencast了。简单明了:<br />
<a href="http://s3.amazonaws.com/rc_files/elastic-rails.html">http://s3.amazonaws.com/rc_files/elastic-rails.html</a><br />
需要指出的是它的网站一直上不去，不知道是不是墙的问题</p>
<p>Capazon 与上面类似:<br />
<a href="http://soylentfoo.jnewland.com/articles/2007/04/30/capazon-0-2-released-capistrano-2-0-compatible">http://soylentfoo.jnewland.com/articles/2007/04/30/capazon-0-2-released-capistrano-2-0-compatible</a></p>
<p>Rubber:<br />
<a href="http://github.com/wr0ngway/rubber/wikis/faq">http://github.com/wr0ngway/rubber/wikis/faq</a></p>
<p>具体用哪一种方案请各取所需</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tzhang.com/blog/2008/09/22/facebook-app-by-ruby-on-rails-more-on-amazon-ec2/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>用Ruby on Rails开发Facebook应用(5) &#8211; Amazon EC2</title>
		<link>http://www.tzhang.com/blog/2008/09/16/develop-facebook-app-using-ruby-on-rails-5</link>
		<comments>http://www.tzhang.com/blog/2008/09/16/develop-facebook-app-using-ruby-on-rails-5#comments</comments>
		<pubDate>Tue, 16 Sep 2008 09:21:22 +0000</pubDate>
		<dc:creator>Deep Blue</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook app]]></category>
		<category><![CDATA[facebooker]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.tzhang.com/blog/2008/09/16/%e7%94%a8ruby-on-rails%e5%bc%80%e5%8f%91facebook%e5%ba%94%e7%94%a85-amazon-ec2</guid>
		<description><![CDATA[Amazon EC2不是什么新东西了，不过从cheewu那里得知他的垂直搜索引擎是用EC2的。偶也有兴趣试用一下，反正钱也不多，呵呵   EC2其实是虚拟化的一台机器，物理上来讲书也不知道你自己的实例在群里的那个部分运行着。不过这并不重要，重要的是只要你想，就可以随时在Amazon的computer farm上开出一块自己的&#8221;自留地&#8221;，计算能力可以选择的，也支持多个实例组成cluster.   Virtualization已经是当今的潮流，估计不用普及了，现在用电脑的，最少也用过VMware吧。呵呵。使用EC2只要简单的几个条件：       在amazon AWS上注册一个id 把EC2 服务加到你的AWS id服务中来（点一个按钮即可，但是很多人不知道，一些教程里面也没写，少了这个步骤，会导致ssl授权通不过的问题，切记） 一个可供网上支付的信用卡，VISA,Mastercard,AE什么的都可以   ok,添好这些，就可以使用EC2的服务了。别着急，您至少先看看收费标准吧EC2 price   都没问题了我们就可以在本地setup EC2的使用环境了。具体可以看这里EC2 Getting Start，我就不罗嗦了。   觉得命令行麻烦的话，推荐一个Firefox插件Elasticfox，大大简化的EC2的操作。反正我是不喜欢用ec2那些奇怪的命令。呵呵。命令行控们可以看这篇How To: Getting Started with Amazon EC2   有个虚拟的机器，用什么OS呢？Amazon上面已经有很多现成的AMI了，把他理解成定制好的系统，可以直接启动。你只要在启动EC2 instance的时候指定某个AMI的ID就可以了。对于Ruby on Rails来说，我推荐EC2onRail的AMI,有32bit和64bit两个版本：   ami-c9bc58a0 (32-bit) ami-cbbc58a2 (64-bit) 几乎你会用到的东西在AMI里面都是ready的：   Features of the EC2 image: Ready to deploy a Rails app with little [...]]]></description>
			<content:encoded><![CDATA[<p>Amazon EC2不是什么新东西了，不过从<a href="http://wuchee.spaces.live.com/">cheewu</a>那里得知他的垂直搜索引擎是用EC2的。偶也有兴趣试用一下，反正钱也不多，呵呵
</p>
<p>
 </p>
<p>EC2其实是虚拟化的一台机器，物理上来讲书也不知道你自己的实例在群里的那个部分运行着。不过这并不重要，重要的是只要你想，就可以随时在Amazon的computer farm上开出一块自己的&#8221;自留地&#8221;，计算能力可以选择的，也支持多个实例组成cluster.
</p>
<p>
 </p>
<p>Virtualization已经是当今的潮流，估计不用普及了，现在用电脑的，最少也用过VMware吧。呵呵。使用EC2只要简单的几个条件：    
</p>
<p>
 </p>
<ol>
<li>在amazon AWS上注册一个id
</li>
<li>把EC2 服务加到你的AWS id服务中来（点一个按钮即可，但是很多人不知道，一些教程里面也没写，少了这个步骤，会导致ssl授权通不过的问题，切记）
</li>
<li>一个可供网上支付的信用卡，VISA,Mastercard,AE什么的都可以
</li>
</ol>
<p>
 </p>
<p>ok,添好这些，就可以使用EC2的服务了。别着急，您至少先看看收费标准吧<a href="http://www.amazon.com/EC2-AWS-Service-Pricing/b/ref=sc_fe_l_2?ie=UTF8&amp;node=201590011&amp;no=3435361&amp;me=A36L942TSJ2AJA">EC2 price</a>
	</p>
<p>
 </p>
<p>都没问题了我们就可以在本地setup EC2的使用环境了。具体可以看<a href="http://docs.amazonwebservices.com/AmazonEC2/gsg/2007-01-19/?ref=get-started">这里EC2 Getting Start</a>，我就不罗嗦了。
</p>
<p>
 </p>
<p>觉得命令行麻烦的话，推荐一个Firefox插件<a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=609">Elasticfox</a>，大大简化的EC2的操作。反正我是不喜欢用ec2那些奇怪的命令。呵呵。命令行控们可以看这篇<a href="http://paulstamatiou.com/2008/04/05/how-to-getting-started-with-amazon-ec2">How To: Getting Started with Amazon EC2</a>
	</p>
<p>
 </p>
<p>有个虚拟的机器，用什么OS呢？Amazon上面已经有很多现成的AMI了，把他理解成定制好的系统，可以直接启动。你只要在启动EC2 instance的时候指定某个AMI的ID就可以了。对于Ruby on Rails来说，我推荐<a href="http://ec2onrails.rubyforge.org/">EC2onRail</a>的AMI,有32bit和64bit两个版本：
</p>
<p>
 </p>
<ul>
<li>ami-c9bc58a0 (32-bit)
</li>
<li>ami-cbbc58a2 (64-bit)
</li>
</ul>
<p>几乎你会用到的东西在AMI里面都是ready的：
</p>
<p style="margin-left: 21pt">
 </p>
<p style="margin-left: 21pt"><em>Features of the EC2 image:<br />
</em></p>
<ul style="margin-left: 56pt">
<li><em>Ready to deploy a Rails app with little or no configuration of the server required<br />
</em></li>
<li><em>Automatic backup of MySQL database to S3 (full backup nightly + incremental backup using binary logs every 5 minutes)<br />
</em></li>
<li><em>Capistrano tasks to customize the server image, archive and restore the database to/from S3, and more (available as a rubygem)<br />
</em></li>
<li><em>Mongrel_cluster behind Apache 2.2, configured according to <br /><a href="http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/"/></em><span style="font-family:Times New Roman; font-size:12pt">Coda Hale&#8217;s excellent guide<em><br />
				</em></span></li>
<li><em>Ruby on Rails 2.1.0, 2.0.2 and 1.2.6<br />
</em></li>
<li><em>Ruby 1.8.6<br />
</em></li>
<li><em>MySQL 5<br />
</em></li>
<li><a href="http://www.danga.com/memcached/"><span style="font-family:Times New Roman; font-size:12pt">memcached</span></a><em><br />
			</em></li>
<li><a href="http://www.tildeslash.com/monit/"><span style="font-family:Times New Roman; font-size:12pt">monit</span></a><em> configured to monitor apache, mongrel, mysql, memcached, drive space and system load<br />
</em></li>
<li><em>Ubuntu 8.04 LTS &#8220;Hardy&#8221; base image built using <a href="http://alestic.com/"/></em><span style="font-family:Times New Roman; font-size:12pt">Eric Hammond&#8217;s EC2 Ubuntu script<em><br />
				</em></span></li>
<li><em>SSL support<br />
</em></li>
<li><em>Amazon AMI tools installed<br />
</em></li>
<li><em>MySQL, Apache, and syslog configured to use /mnt for data and logging so you don&#8217;t fill up EC2&#8242;s small root filesystem<br />
</em></li>
<li><em>Automatically archives Rails and Apache logs to S3 nightly.<br />
</em></li>
<li><em>32-bit and 64-bit images available (supports all instance types, small to extra large).<br />
</em></li>
<li><em>Created using a build file, full source is <a href="http://rubyforge.org/scm/?group_id=4552"/></em><span style="font-family:Times New Roman; font-size:12pt">available<em> (the EC2 on Rails script is run from <a href="http://alestic.com/"/></em>Eric Hammond&#8217;s EC2 Ubuntu script<em>)<br />
</em></span></li>
<li><em>Can be used as a clustered Rails app running on multiple instances<br />
</em></li>
<li><em>Automatically runs hourly, daily, weekly and monthly scripts if they exist in Rails application&#8217;s script directory<br />
</em></li>
<li><em>Local <a href="http://www.postfix.org/"/></em><span style="font-family:Times New Roman; font-size:12pt">Postfix<em> SMTP mail server (only available from within the instance, not listening on external network interfaces)<br />
</em></span></li>
</ul>
<p>
 </p>
<p>如果你自己还需要别的东西的话，尽可以自己安装(Ubuntu的apt-get或者手动),然后把Image传到S3上就成为自己定制的AMI了。具体过程不难，请参考这个小短文<a href="http://blog.xdite.net/?p=672">HOWTO Build EC2 image</a>
	</p>
<p>
 </p>
<p>EC2 instance ready了还没完，你自己的本地开发环境也要作一些事情
</p>
<p>
 </p>
<ol>
<li>sudo gem install ec2rails
</li>
<li>copy capify,deploy 脚本到你的app目录下（用过capistrano的人都知道）
</li>
<li>run capistrano task吧。集体还是看ec2rails的说明
</li>
</ol>
<p>
 </p>
<p>
 </p>
<p>ok,建一个自己的instance尽情享受root的快感去吧</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tzhang.com/blog/2008/09/16/develop-facebook-app-using-ruby-on-rails-5/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

