以下引用:
http://rails.lighthouseapp.com/projects/8994/tickets/99-sqlite-connection-failing によると、 sqlite3 のアダプタに問題があるようなので、
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/sqlite3_adapter.rb を以下のように修正した。
module ConnectionAdapters #:nodoc:
class SQLite3Adapter < SQLiteAdapter # :nodoc:
def table_structure(table_name)
#returning structure = @connection.table_info(quote_table_name(table_name)) do ← quote_table_name を外した
returning structure = @connection.table_info(table_name) do
raise(ActiveRecord::StatementInvalid, "Could not find table '#{table_name}'") if structure.empty?
end
end
end
end
引用終了
サービス再起動して
http://localhost::4000/
アクセスしたら、成功!!!
途中どこか、書き忘れがあるけど、一応動くようになった。
地道な作業だった。
rake db:migrate RAILS_ENV=production再実施
サービス再起動して
http://localhost::4000/
アクセスしたら、成功!!!
途中どこか、書き忘れがあるけど、一応動くようになった。
地道な作業だった。