I am building a test site on my PowerBook (G4) using rails, sqlite3, and
webrick.
While running in development mode, the web server completely halted.
Error message is:
sqlite is not production material and if you are using AJAX it is not
even
development material.
You will get all sorts of problems regarding multiple access to the
database.
sqlite3 is a client library with no server. The process using
it (WEBrick running your Rails program) is segfaulting, so it’s
not sqlite3 that is having the problem, per se, but your program
indirectly due to its usage of sqlite3.
Now I understand. SQLite3 is an embedded DB unlike MySQL.
I forgot that.
You won’t need to worry about this in production, because the web server
will not be processing Rails requests. Instead, it will be serving
static
content and passing dynamic requests back to the application layer
servers,
perhaps mongrel or FCGI.
Thanks for the explanation. I’m not worried now.
As in all things, it’s very important in a production environment to be
certain that if a process fails for any reason, it will be restarted.
Do I have to configure it like that or is it already configured like
that?
Why did the web server die when sqlite3 had a problem?
sqlite3 is a client library with no server. The process using
it (WEBrick running your Rails program) is segfaulting, so it’s
not sqlite3 that is having the problem, per se, but your program
indirectly due to its usage of sqlite3.
Is it because it’s development mode?
No.
Or is it because it’s webrick which is not a very strong web server?
No.
You won’t need to worry about this in production, because the web server
will not be processing Rails requests. Instead, it will be serving
static
content and passing dynamic requests back to the application layer
servers,
perhaps mongrel or FCGI.
As in all things, it’s very important in a production environment to be
certain that if a process fails for any reason, it will be restarted.
–
– Tom M.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.