gemfile

Is it possible to override gemfile for local development?

我们两清 提交于 2019-12-19 07:35:06
问题 We have a Gemfile currently in our git repository. However, there's a gem I use only locally in my environment (my team doesn't use it). In order to use it, I have to add it to our Gemfile , but every time I check out to our master/dev main branch, I have to remove it because of conflicts with the tracked gemfile. What I would like is something like a Gemfile.local which would inherit the gems imported from the Gemfile but to also allow new gems to be imported there to use on my machine only.

Is it possible to override gemfile for local development?

放肆的年华 提交于 2019-12-19 07:35:02
问题 We have a Gemfile currently in our git repository. However, there's a gem I use only locally in my environment (my team doesn't use it). In order to use it, I have to add it to our Gemfile , but every time I check out to our master/dev main branch, I have to remove it because of conflicts with the tracked gemfile. What I would like is something like a Gemfile.local which would inherit the gems imported from the Gemfile but to also allow new gems to be imported there to use on my machine only.

What is the use of Gemfile in rails?

百般思念 提交于 2019-12-17 07:12:26
问题 What is the use of Gemfile in rails? How to use Gemfile ? 回答1: During your development in Rails, there will be times where you will want to provide some functionality which is required by you, but either you don't know how to do or you don't want to implement it on your own since a lot of work has been put into its development by talented developers. These developments which you might need (user authentication, message system, asset handlers, geolocation, pagination system, linking to

Heroku: Failed to install gems via Bundler

一笑奈何 提交于 2019-12-14 00:34:43
问题 I try to push my Rails app to Heroku using git push heroku master -f command and I get this: Total 0 (delta 0), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Ruby app detected remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-2.0.0 remote: -----> Installing dependencies using 1.9.7 remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment

Bundler could not find compatible versions for gem “sass”

左心房为你撑大大i 提交于 2019-12-13 01:51:08
问题 I am using middleman 3.3.9 and gem 'sass-rails', '~> 4.0.3' gem 'bootstrap-sass', '~> 3.3.1' gem 'bootstrap-timepicker-rails' gem 'sass', '~> 3.2.19' When I run bundle install, I get this error: Bundler could not find compatible versions for gem "sass": In Gemfile: middleman (~> 3.3.9) ruby depends on sass (< 4.0, >= 3.4.0) ruby sass (3.2.19) How can I make this pass? 回答1: You're having a dependent gem conflict problem. You've locked sass-rails down so it can't bring in a sass that's new

git push heroku master will not recognize my Gemfile.lock file

断了今生、忘了曾经 提交于 2019-12-13 01:03:29
问题 My first time pushing to Heroku using Git and I'm getting the error message: Gemfile.lock is required. Please run "bundle install" locally and commit your Gemfile.lock. I have ran bundle install , added the files to the git repo, commited the changes. See the Gemfile.lock in both the repository and my directory but when I run the command git push heroku master it consistently throws that error. What am I doing wrong: Here is the git repo on my PC $git ls-files .bundle/config .gitignore .rspec

Bundler gem compatibility issues when deploying to heroku.

▼魔方 西西 提交于 2019-12-12 02:45:21
问题 I receive the following error message is when deploying to heroku: Bundler could not find compatible version for gem "railties": In Gemfile: rails (= 4.0.0) ruby depends on railties (= 4.0.0) ruby coffee-rails (= 4.0.0) ruby depends on railties (4.0.1.rc1) Failed to install gems via Bundler Gemfile source 'https://rubygems.org' ruby '1.9.3' gem 'rails', '4.0.0' gem 'bcrypt-ruby', '3.0.1' gem 'faker', '1.1.2' gem 'will_paginate', '3.0.4' gem 'will_paginate-bootstrap' group :development, :test

Deploying Ruby on Rails App (OpenConferenceWare) to IBM Bluemix

非 Y 不嫁゛ 提交于 2019-12-12 00:26:19
问题 I have been trying to push my 'openconferenceware' appl to bluemix. While, the application runs flawlessly on my local system, it doesnt get deployed on the Bluemix. Below is the log output. Writing config/database.yml to read from DATABASE_URL -----> Preparing app for Rails asset pipeline Running: rake assets:precompile rake aborted! NameError: uninitialized constant OpenConferenceWare /tmp/staged/app/config/initializers/01_open_conference_ware.rb:3:in `<top (required)>' /tmp/staged/app

Rails app rake db:migrate aborted - syntax error

让人想犯罪 __ 提交于 2019-12-11 14:43:23
问题 I keep getting the following error when running rake db:migrate: rake aborted! syntax error on line 18, col 9: ` adapter: mysql' Tasks: TOP => db:migrate => environment (See full trace by running task with --trace) This is my database.yml file: # SQLite version 3.x # gem install sqlite3-ruby (not necessary on OS X Leopard) development: adapter: sqlite3 database: db/development.sqlite3 pool: 5 timeout: 5000 # Warning: The database defined as "test" will be erased and # re-generated from your

bundle install problem

旧时模样 提交于 2019-12-11 13:03:41
问题 ok whenever I run "bundle install" I get this Bundler could not find compatible versions for gem "railties": In Gemfile: sass-rails (~> 3.1.0.rc8) depends on railties (~> 3.1.0) railties (3.1.0.rc8) now in my gem file i have this: source 'http://rubygems.org' gem 'rails', '3.1.0.rc8' # Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' gem 'sqlite3' gem 'json' # Gems used only for assets and not required # in production environments by default. group :assets