Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use postgres instead of sqlite3 in engine setup? #234

Closed
rubendinho opened this issue Mar 2, 2017 · 2 comments
Closed
Labels

Comments

@rubendinho
Copy link
Contributor

I am setting up Godmin using the engine route but am getting the below error running admin/bin/rails bundle install

Could not find gem 'sqlite3' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems. 

My project uses postgres and I'd like to avoid bundling sqlite3 if possible.

@jensljungblad
Copy link
Contributor

jensljungblad commented Mar 3, 2017

That's weird. It's probably referring to the development dependency in your admin/admin.gemspec: s.add_development_dependency "sqlite3". It's something Rails adds and uses for the dummy app that gets created along with your engine, to be used for tests.

The error says that the gem couldn't be found, which is weird. I assume you still have source 'https://rubygems.org' in your Gemfile? Perhaps the site was down for a bit or something.

You can always remove the development dependency as well, if you're not gonna use the dummy app.

@rubendinho
Copy link
Contributor Author

I fall in the category of people discussed #227 who are still getting their bearings around non-Rails uses of Bundler. I ended up having to install the gem manually to bypass the warning. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants