Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

1st Chinaonrails Open Course 高级战略

1,484 views

Published on

Published in: Technology
  • Be the first to comment

1st Chinaonrails Open Course 高级战略

  1. 1. Caiwangqin 2007-11-24
  2. 2. <ul><li>Projects review </li></ul><ul><li>Production </li></ul><ul><ul><li>Apache + Mongrel </li></ul></ul><ul><ul><li>Lighttpd + FactCGI </li></ul></ul><ul><li>Auto Deploy </li></ul><ul><ul><li>Capistrano </li></ul></ul><ul><li>Cache </li></ul><ul><li>OPENID </li></ul><ul><li>Questions and Answers </li></ul>
  3. 3. <ul><li>Team meeting </li></ul><ul><ul><li>Team 1 demo </li></ul></ul><ul><ul><li>Team 2 demo </li></ul></ul><ul><ul><li>Team 3 demo </li></ul></ul>
  4. 4. <ul><li>Apache + Mongrel </li></ul><ul><ul><li>Apache2.2.4 </li></ul></ul><ul><ul><li>Mongrel(1.0.4, ruby 1.8.6) </li></ul></ul><ul><ul><ul><li>sudo gem install mongrel </li></ul></ul></ul><ul><ul><ul><li>$ cd myrailsapp </li></ul></ul></ul><ul><ul><ul><li>$ mongrel_rails start -d </li></ul></ul></ul><ul><li>http://www.caiwangqin.com/post/307 </li></ul><ul><li>http://mongrel.rubyforge.org/docs/apache.html </li></ul>
  5. 5. <ul><li>Lighttpd + FactCGI </li></ul><ul><li>http://www.caiwangqin.com/post/231 </li></ul>
  6. 6. <ul><li>Install capistrano </li></ul><ul><ul><li>gem install capistrano </li></ul></ul><ul><li>Use capistrano </li></ul><ul><ul><li>cap –apply-to x:/path/to/my/app MyApplicationName </li></ul></ul><ul><ul><li>Change config/deploy.rb </li></ul></ul><ul><li>http://www.caiwangqin.com/post/222 </li></ul>
  7. 7. <ul><li>Rails Cache </li></ul><ul><ul><li>Page Caching </li></ul></ul><ul><ul><li>Action Caching </li></ul></ul><ul><ul><li>Fragment Caching </li></ul></ul><ul><li>http://www.caiwangqin.com/post/372 </li></ul><ul><li>http://www.railsenvy.com/2007/3/20/ruby-on-rails-caching-tutorial-part-2 </li></ul>
  8. 8. <ul><li>Memcached </li></ul><ul><ul><li>Install memcaced (only linux) </li></ul></ul><ul><ul><li>Start </li></ul></ul><ul><ul><ul><li>/memcached -d -u root -m 10 -l 192.168.0.249 -p 11211 </li></ul></ul></ul><ul><li>Rails Application </li></ul><ul><ul><li>Install memcache-client </li></ul></ul><ul><li>http://www.caiwangqin.com/post/216 </li></ul>
  9. 9. <ul><li>OpenID </li></ul><ul><ul><li>1.install Ruby OpenID library </li></ul></ul><ul><ul><ul><li>gem install ruby-openid </li></ul></ul></ul><ul><ul><li>2.install OpenidLoginGenerator </li></ul></ul><ul><ul><ul><li>gem install openid_login_generator </li></ul></ul></ul><ul><ul><li>3.create rails application openid, don’t forget config you database, the generator weill be create user model for users table. </li></ul></ul><ul><ul><ul><li>rails openid </li></ul></ul></ul><ul><ul><li>4.run generator for openid_login </li></ul></ul><ul><ul><ul><li>./script/generate openid_login auth </li></ul></ul></ul><ul><li>http://www.caiwangqin.com/post/205 </li></ul>
  10. 10. <ul><li>Questions and Comments </li></ul>
  11. 11. <ul><li>Thank you </li></ul><ul><li>Resources </li></ul><ul><ul><li>Rails has a large enthusiastic community at rubyonrails.org </li></ul></ul><ul><ul><li>Ruby on Rails Chinese community at chinaonrails.com </li></ul></ul><ul><ul><li>I blog regularly about Rails and web 2.0 topics at caiwangqin.com </li></ul></ul><ul><ul><li>I love getting email: [email_address] </li></ul></ul>

×