2012-01-01から1年間の記事一覧

MySQLでInnoDBが動かない

InnoDB: Error: log file ./ib_logfile0 is of different size 0 134217728 bytes InnoDB: than specified in the .cnf file 0 5242880 bytes! rm -f /var/lib/mysql/ib_logfile0 rm -f /var/lib/mysql/ib_logfile1 /etc/rc.d/init.d/mysqld restart

rakeの中でrvmを使用したい

#!/bin/bash if [ -f /etc/profile.d/rvm.sh ] then source /etc/profile.d/rvm.sh else echo '$0: /etc/profile.d/rvm.sh not found' exit 1 fi

Railsでlogを書きだす場所を変更する。

time = Time.now.strftime "%Y%m%d" file_name = time + "test.log" ActiveRecord::Base.logger = Logger.new("/var/log/test/"+file_name)

View-based Applicationが見つからない。

View-based Applicationが見つからない。 「View-based Application」と同じ構成にするには、「Single View Application」を選択し、「Next」ボタンを押し、「Use storyboard」のチェックを外し「Next」ボタンを押し保存するれば同じ構成になっているようで…

sudo heroku keys addの際に出たエラー

/usr/local/heroku/vendor/gems/rest-client-1.6.1/lib/restclient.rb:9:in `rescue in ': /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient.rb:9: no such file to load -- net/https. Try running apt-get install libopenssl-ruby (LoadErr…