voltrb / volt

A Ruby web framework where your Ruby runs on both server and client
MIT License
3.22k stars 196 forks source link

Disable persistence layer (volt-mongo) on Volt #348

Open renatodex opened 8 years ago

renatodex commented 8 years ago

Short version: Its possible to completely disable the persistence layer on Volt? I tried to disable "gem 'volt-mongo', '~> 0.1.0'" from Gemfile, but i got the following error at the server launch: "RuntimeError: mongo is not a supported database, you might be missing a volt-mongo gem"

TL;DR I have a pre-stabilished web-app built in Ruby on Rails, and i studying its migration to Volt. This application is a Monolith Frontend application, accessing my Backend through REST API.

There is no Database connection. Its only API based. And i wanted to test an arquitecture migration to Volt and see if i could keep things running using only HttpControllers (i know, its bad, but its a temporary solution until we start refactoring the whole thing)

But for that, Volt is very annoying, because it seems to require a Mongod instance up and running in order to run "bundle exec volt server".

And heres my question: Its possible to completely disable the persistence layer on Volt? I tried to disable "gem 'volt-mongo', '~> 0.1.0'" from Gemfile, but i got the following error at the server launch: "RuntimeError: mongo is not a supported database, you might be missing a volt-mongo gem"

renatodex commented 8 years ago

@balmoral already solved my question on Gitter.

However, im thinking about how relevant that feature is. What do you think?

silkPK commented 1 year ago

Hi, I know it's an old question, but how did you fix it?