bundler

Could not locate Gemfile after executing “bundle install”

雨燕双飞 提交于 2019-12-31 03:14:11
问题 Hey, I am completely new to Rails and just started created my first Project, following the Steps of a tutorial. I created the new Project using: rails myapp . Then I should execute bundle install , this did not work because bundler has not been installed, after an Update on Gems and installing bundler I have been able to execute bundle install , but every time I receive: Could not locate Gemfile I checked my project dir, it is true there is no Gemfile, but should this be created automatically

CircleCI gems caching

别来无恙 提交于 2019-12-30 09:02:27
问题 Is it possible to cache gems, so that bundle install will not install bunch of gems for every build? This takes 5 minutes on every build, that is too much. I've added this to the circle.yml config: dependencies: cache_directories: - "/home/ubuntu/.rvm/gems/ruby-2.1.2/gems/" This is the common directory which is provided by bundle show gem_name where all system gems are put. After this addition system writes such log: restoring cache v4/company/repo_name/dependency/circle-ci/42

CircleCI gems caching

爱⌒轻易说出口 提交于 2019-12-30 09:01:08
问题 Is it possible to cache gems, so that bundle install will not install bunch of gems for every build? This takes 5 minutes on every build, that is too much. I've added this to the circle.yml config: dependencies: cache_directories: - "/home/ubuntu/.rvm/gems/ruby-2.1.2/gems/" This is the common directory which is provided by bundle show gem_name where all system gems are put. After this addition system writes such log: restoring cache v4/company/repo_name/dependency/circle-ci/42

Failed to build gem native extension with JRuby

ⅰ亾dé卋堺 提交于 2019-12-30 07:39:08
问题 I change the ruby version from ruby 1.9.3-p125 to JRuby 1.7.0-preview1 with ruby-build. When I execute jruby -S bundle install on my project, there are some errors as below, ... Using bson (1.6.2) Installing bson_ext (1.6.2) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/joshchang/.rbenv/versions/jruby-1.7.0-preview1/bin/jruby extconf.rb NotImplementedError: C extension support is not enabled. Pass -Xcext.enabled=true to JRuby

Heroku push rejected

别说谁变了你拦得住时间么 提交于 2019-12-30 05:25:07
问题 -----> Ruby/Rack app detected -----> Using Ruby version: ruby-1.9.3 -----> Installing dependencies using Bundler version 1.3.0.pre.2 Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ Fetching gem metadata from http://rubygems.org/......... Fetching gem metadata from http://rubygems.org/.. ^[[C^[[D^[[D/app/slug-compiler/lib/utils.rb:66:in `block (2 levels) in spawn': command='/app/slug-compiler/lib/../../tmp/buildpacks/ruby/bin/compile /tmp/build

Can't install JSON gem

故事扮演 提交于 2019-12-30 04:04:05
问题 I need to install json because I get this error: Could not find json-1.4.6 in any of the sources I ran gem install json and bundle install but I was only able to install json-1.5.1 when I need json-1.4.6 I have gem 'json', '1.4.6' in my gemfile, so I'm not sure what's going on... UPDATE I get this error: Installing json (1.4.6) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1216:in `chmod': Operation not permitted - /Library/Ruby/Gems/1.8/gems/json-1.4.6

How is the :assets group in rails 3.1 handled by bundler?

和自甴很熟 提交于 2019-12-30 00:52:14
问题 I don't understand what exactly is going on with this group, and what bundler is doing with it. Is it only loaded in dev mode? What if I want to make a new environment type, how should I handle this group? Etc. group :assets do gem 'coffee-rails', "~> 3.1.0" gem 'uglifier' end 回答1: The code that handles :assets group placed in config\application.rb . In rails 3.1 it is: if defined?(Bundler) # If you precompile assets before deploying to production, use this line Bundler.require *Rails.groups(

Develop on windows, run unicorn in production on heroku

老子叫甜甜 提交于 2019-12-29 18:53:44
问题 I have a new Rails project and i decided to give heroku a try, deployment seems very easy there I am developing on windows, so running unicorn is not a choice, but webrick is fine for development BUT, when it come to deployment , i want to use unicorn, and heroku perfectly support this The Problem Is: i have to list unicorn on my Gemfile in order for heroku to pick it, but when i do that and run bundle command (or rails s) on my windows dev machine, it tries to install the unicorn server i

Develop on windows, run unicorn in production on heroku

筅森魡賤 提交于 2019-12-29 18:51:54
问题 I have a new Rails project and i decided to give heroku a try, deployment seems very easy there I am developing on windows, so running unicorn is not a choice, but webrick is fine for development BUT, when it come to deployment , i want to use unicorn, and heroku perfectly support this The Problem Is: i have to list unicorn on my Gemfile in order for heroku to pick it, but when i do that and run bundle command (or rails s) on my windows dev machine, it tries to install the unicorn server i

How to customize Gemfile per developer?

做~自己de王妃 提交于 2019-12-29 11:34:27
问题 There is a common pattern: there are many developers working on one project and the Gemfile(.lock) is shared via SCM. But what if some developers want to use different tools for testing and development? How to do it? The problem is, that when you put conditional sections to your Gemfile, also the Gemfile.lock will be different for each developer and therefor you'll get conflict each time you commit to SCM. Is there some simple, widely acknowledged solution? 回答1: I like to have this in my