Skip to content

Commit

Permalink
bin/serve was updated during a bundle install --binstubs
Browse files Browse the repository at this point in the history
  • Loading branch information
revans committed Jul 31, 2013
1 parent ecccb0a commit fdbb227
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions bin/serve
@@ -1,16 +1,16 @@
#!/usr/bin/env ruby
#
# This file was generated by Bundler.
#
# The application 'serve' is installed as part of a gem, and
# this file is here to facilitate running it.
#

lib = File.dirname(__FILE__) + '/../lib'
require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require 'rubygems'
require 'bundler/setup'

if File.file?(lib + '/serve/version.rb')
$LOAD_PATH << lib
else
gem 'serve'
end

require 'serve'
require 'serve/application'

Serve::Application.run
load Gem.bin_path('serve', 'serve')

1 comment on commit fdbb227

@haf
Copy link

@haf haf commented on fdbb227 Jul 6, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surely gems themselves should not try to start themselves using bundler??

I'm getting infinite recursion on the last line when using bundler myself. See #117 error

Please sign in to comment.