bundler

How to reset bundler path

帅比萌擦擦* 提交于 2019-12-22 10:13:56
问题 I've managed to break bundler! I was messing around in a Rails app and I did something like bundle install string . Now all my gems are being installed into a folder called "string" within the app. How do I reset bundler to use the default paths for my rvm gemsets? Another post here suggested using bundle install --system , but will this ensure that gems are installed into gemsets? I have checked rvm info and the GEM_HOME and GEM_PATH appear to point to the correct rvm/ gemset directories. So

Can't start service with sudo since root user has no access to Ruby

≡放荡痞女 提交于 2019-12-22 09:54:31
问题 tl;dr Trying to run a service which needs ruby to run. But, Ruby is installed with RVM where the root user can't seem to access it, producting the error /usr/bin/env: ruby: No such file or directory . rvmsudo doesn't work. Background I have an init.d script which is supposed to start a unicorn server. I keep the script in the config directory of my rails application and symlink to it from /etc/init.d/busables_unicorn . $ ls -l /etc/init.d/busables_unicorn -> lrwxrwxrwx 1 root root 62 2012-01

Gemfile - separating Production gems from Development gems

南楼画角 提交于 2019-12-22 09:07:32
问题 So I know that in a Gemfile I can do something like this: group :development, :test do gem 'gem1' gem 'gem2' end What I am looking to accomplish is something like this: group :production do gem 'gem1' gem 'gem2' end group :development, :test do gem 'gem1', :path => '/Documents/Code/gem1/' gem 'gem2', :path => '/Documents/Code/gem2/' end So our application uses 2 gems that we also develop locally. In order to improve time while developing on our local machines, we want to be able to point our

specify a range in bundler ruby version

别来无恙 提交于 2019-12-22 04:56:12
问题 Is there a way to specify a range for ruby version? ruby '~> 2.1.0' Your Ruby version is 2.1.1, but your Gemfile specified ~> 2.1.0 ruby '>= 2.1.0' Your Ruby version is 2.1.1, but your Gemfile specified >= 2.1.0 Obviously, ranges works for gems, but maybe it's not possible for ruby version. Or did I get my syntax wrong? 回答1: You can't set a range for the ruby version, see here Syntax is like so: ruby 'RUBY_VERSION', :engine => 'ENGINE', :engine_version => 'ENGINE_VERSION', :patchlevel =>

LoadError by requiring a gem with :path or :git

╄→гoц情女王★ 提交于 2019-12-22 04:31:50
问题 I've got a really strange problem here. I forked a gem on github to do some modifications, cloned my repo on my local machine, made the changes and changed the Gemfile of another project to fetch the gem from my local repository for testing it. Unfortunately I get a LoadError while requiring that gem in my ruby script. rvm current => ruby-1.9.3-p448 ruby --version => ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux] bundle --version => Bundler version 1.3.5 Content of my Gemfile:

Ruby Gems with Gitlab no such file to load — rb-inotify

拜拜、爱过 提交于 2019-12-22 03:23:09
问题 I am using Gitlab and I am trying to follow these instructions to upgrade my gitolite v2 to v3: "If this issue occurs in 2.9.x you should reinstall gitolite. 1) backup all repositories. Just copy /home/git/repositories/* elsewhere. 2) Install new gitolite. See https://github.com/gitlabhq/gitlabhq/blob/master/doc/installation.md 3) copy repositories back. 4) sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_keys && sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_repos That's

'bundle exec' complains about gem not being installed, even after 'bundle install'

℡╲_俬逩灬. 提交于 2019-12-21 11:35:27
问题 I have a website using Jekyll with Github Pages. After previously messing about with versions and RVM on another computer, on this one I opted to stick with just one version of Ruby and per-project environments using bundler. I have a pretty simple Gemfile : [$]> cat Gemfile source 'https://rubygems.org' gem 'github-pages' and bundler config: [$]> cat .bundle/config --- BUNDLE_PATH: env BUNDLE_DISABLE_SHARED_GEMS: '1' When I run any command (jekyll, gem, irb) through bundle exec , I get a

Do I need to install passenger as a regular gem even though my app uses bundler?

不羁岁月 提交于 2019-12-21 05:38:11
问题 Im trying to setup a new server to host a Rails app and want a clean installation of all the components so i decided to use rvm+bundler. Its my first time setting up a Rails server. I've used bundler with an app before and I understand how it manages the App's dependencies... but since Im installing Passenger and since this is the hosting environment's dependency, I need to do a 'gem install passenger' on the box itself instead of bundling this dependency, right? Or should I be putting

Define Bundle Path With Capistrano

浪尽此生 提交于 2019-12-21 05:35:17
问题 I am using the following configurations in my deploy.rb file for capistrano: require 'bundler/capistrano' require 'rvm/capistrano' set :bundle_cmd, "/home/deployment/.rvm/gems/ruby-1.9.3-p194@global/bin/bundle" set :default_environment, { 'PATH' => "/home/deployment/.rvm/gems/ruby-1.9.3-p194/bin:/home/deployment/.rvm/bin:$PATH", 'RUBY_VERSION' => 'ruby 1.9.3', 'GEM_HOME' => "/home/deployment/.rvm/gems/ruby-1.9.3-p194", 'GEM_PATH' => "/home/deployment/.rvm/gems/ruby-1.9.3-p194", 'BUNDLE_PATH'

Gemfile.lock always has changes not staged for commit

≡放荡痞女 提交于 2019-12-21 04:08:31
问题 I am running into this problem on a rails app I am working on. I was working on a feature branch and wanted to rebase from the most recent master. I ran the following commands: $ git checkout master $ git pull --rebase If I try to checkout back to my feature branch I get the following error: Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: Gemfile.lock I have tried the