On Sun, Oct 11, 2015 at 4:19 AM, Renato Serra <renato.se...@hailocab.com> wrote:

> I got an app that uses a remote SQL server database, this remote server is
> sometimes unavailable and i have no control over it.
> The app only uses the database to do stuff after login in with devise. But
> if the database is is down i cant even start the server as it just tried to
> start the connection pool.
> Is there anyway i can get the static pages to still work when the database
> is not working? I cant seem to find anything about this which is odd as
> servers and networks are often unstable.

Expecting a web *application* to start normally while it's missing a
significant component seems odd to me :-)

In any case, while you could probably do some hideous hackery to
ignore the initialization failure, why not just configure your front-end
server (nginx, httpd, whatever) to serve the static pages directly?

FWIW,
-- 
Hassan Schroeder ------------------------ hassan.schroe...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAnZ8n-7iiHEMKrxPrXkiMqiGy7cYMP5EjE3g2i-3uk3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to