2010年1月 の日誌

国会中継って結構見てる人多いですよね。てれび応援団でも地味に盛り上がってます。鳩山首相が偽装献金問題で叱責されている時が最もテンションが上がってました。

国会中継「参議院予算委員会質疑」
Powerd by てれび応援団
過去の参議院予算委員会質疑も地味に盛り上がってますので、一人で国会中継をみるなら一緒にもりあがってはいかがでしょうか?(爆
てれび応援団の運用環境のRailsのバージョンをを2.0.2から2.3.5にアップデートしました。 手順としては、environment.rbの内容を次のように変更 旧)RAILS_GEM_VERSION = '2.0.2' 新)RAILS_GEM_VERSION = '2.3.5' アプリケーションルートで >rake rails:update を実行。2.3.5の環境で動作するようにRailsの設定やらスクリプトファイルやらを更新。 これで動くと思いきや、Passengerのエラーで動作せず... たぶん。これのせい http://weblog.rubyonrails.org/2009/3/16/rails-2-3-templates-engines-rack-metal-much-more > If you're running on Passenger, be sure to upgrade to 2.1.2 as well. Rails 2.3 doesn't run on older versions of Passenger! しょうがないから、Passenger をアップデート 既存バージョンの除去 $ sudo aptitude remove libapache2-mod-passenger 新バージョンのインストール http://www.modrails.com/install.html $ sudo gem install passenger $ passenger-install-apache2-module Welcome to the Phusion Passenger Apache 2 module installer, v2.2.9. This installer will guide you through the entire installation process. It shouldn't take more than 3 minutes in total. Here's what you can expect from the installation process: 1. The Apache 2 module will be installed for you. 2. You'll learn how to configure Apache. 3. You'll learn how to deploy a Ruby on Rails application. Don't worry if anything goes wrong. This installer will advise you on how to solve any problems. Press Enter to continue, or Ctrl-C to abort. 1 -------------------------------------------- * GNU C++ compiler... not found * Ruby development headers... found * OpenSSL support for Ruby... found * RubyGems... found * Rake... found at /usr/bin/rake * rack... found * Apache 2... found at /usr/sbin/apache2 * Apache 2 development headers... not found * Apache Portable Runtime (APR) development headers... not found * Apache Portable Runtime Utility (APU) development headers... not found Some required software is not installed. But don't worry, this installer will tell you how to install them. Press Enter to continue, or Ctrl-C to abort. -------------------------------------------- Installation instructions for required software * To install GNU C++ compiler: Please run apt-get install build-essential as root. * To install Apache 2 development headers: Please run apt-get install apache2-prefork-dev as root. * To install Apache Portable Runtime (APR) development headers: Please run apt-get install libapr1-dev as root. * To install Apache Portable Runtime Utility (APU) development headers: Please run apt-get install libaprutil1-dev as root. If the aforementioned instructions didn't solve your problem, then please take a look at the Users Guide: /usr/lib/ruby/gems/1.8/gems/passenger-2.2.9/doc/Users guide Apache.html C コンパイラと apache のヘッダーがないと怒られているので言われるがままにインストール $ sudo apt-get install build-essential $ sudo apt-get install apache2-prefork-dev $ sudo apt-get install libapr1-dev $ sudo apt-get install libaprutil1-dev (実際には apache2-prefork-dev に libapr1 と libaprutil1 が含まれているので後ろ二つは不要) リトライ $ sudo passenger-install-apache2-module (中略) The Apache 2 module was successfully installed. Please edit your Apache configuration file, and add these lines: LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.9/ext/apache2/mod_passenger.so PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.9 PassengerRuby /usr/bin/ruby1.8 After you restart Apache, you are ready to deploy any number of Ruby on Rails applications on Apache, without any further Ruby on Rails-specific configuration! Press ENTER to continue. -------------------------------------------- Deploying a Ruby on Rails application: an example Suppose you have a Rails application in /somewhere. Add a virtual host to your Apache configuration file and set its DocumentRoot to /somewhere/public: <VirtualHost *:80> ServerName www.yourhost.com DocumentRoot /somewhere/public # <-- be sure to point to 'public'! <Directory /somewhere/public> AllowOverride all # <-- relax Apache security settings Options -MultiViews # <-- MultiViews must be turned off </Directory> </VirtualHost> And that's it! You may also want to check the Users Guide for security and optimization tips, troubleshooting and other useful information: /usr/lib/ruby/gems/1.8/gems/passenger-2.2.9/doc/Users guide Apache.html Enjoy Phusion Passenger, a product of Phusion (www.phusion.nl) :-) http://www.modrails.com/ Phusion Passenger is a trademark of Hongli Lai & Ninh Bui. 言われるがままに、設定ファイルを修正 --[/etc/apache2/mods-available/passenger.load]-- #LoadModule passenger_module /usr/lib/apache2/modules/mod_passenger.so LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.9/ext/apache2/mod_passenger.so ---- --[/etc/apache2/mods-available/passenger.load]-- <IfModule mod_passenger.c> # PassengerRoot /usr # PassengerRuby /usr/bin/ruby PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.9 PassengerRuby /usr/bin/ruby1.8 </IfModule> ---- 念のため、passenger を明示的に有効化 $ sudo a2enmod passenger
apache 再起動
$ /etc/init.d/apache2 restart



皆様、新年あけましておめでとうございます。2009年4月からサービスを開始、6月からアクセスの統計をとり始めて以来、約5万人の方からアクセスをいただき、7700名の方がリピートしてくださっています。まことにありがとうございます。
とりあえずアクセスしてみたけど誰もいないからいいや となってしまっている方、がっかりさせてしまって誠に申し訳ございません。
人が再訪し続けない理由はいくつかあると思いますが、そこはあまり慌てずに気長にやっていこうと思っておりますので、今後ともご意見等よろしくお願いいたします。

今年もてれび応援団の応援をよろしくお願いいたします。

Powered by Movable Type 4.2rc4-en