Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bin/serve was updated during a bundle install --binstubs
- Loading branch information
Showing
1 changed file
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |
fdbb227
There was a problem hiding this comment.
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