Ruby on rails 即使在更新Bundler之后,也会出现运行Bundler的问题

Ruby on rails 即使在更新Bundler之后,也会出现运行Bundler的问题,ruby-on-rails,ruby,ubuntu,rubygems,bundler,Ruby On Rails,Ruby,Ubuntu,Rubygems,Bundler,在Ubuntu上运行此命令后,我不断收到以下错误: sudo -u huginn -H bundle install --deployment --without development test 这就是错误: [!] There was an error parsing `Gemfile`: Line " RAILS_ENV=production" doesn't match format. Bundler cannot continue. from /home/huginn/huginn/

在Ubuntu上运行此命令后,我不断收到以下错误:

sudo -u huginn -H bundle install --deployment --without development test
这就是错误:

[!] There was an error parsing `Gemfile`: Line " RAILS_ENV=production" doesn't match format. Bundler cannot continue.
from /home/huginn/huginn/Gemfile:14
-------------------------------------------
require File.join(File.dirname(__FILE__), 'lib/gemfile_helper.rb')   GemfileHelper.load_dotenv do |dotenv_dir|  #    path dotenv_dir do  # 
-------------------------------------------
我有最新版本的bundler

编辑:这是我的文件:

# Ruby 2.2.2 is the minimum requirement ruby ['2.2.2', RUBY_VERSION].max
# Ensure github repositories are fetched using HTTPS git_source(:github) do     |repo_name|   repo_name =
"#{repo_name}/#{repo_name}" unless repo_name.include?("/")  
"https://github.com/#{repo_name}.git" end if
Gem::Version.new(Bundler::VERSION) < Gem::Version.new('2')
# Load vendored dotenv gem and .env file require     File.join(File.dirname(__FILE__), 'lib/gemfile_helper.rb')
GemfileHelper.load_dotenv do |dotenv_dir|   path dotenv_dir do
gem 'dotenv'
gem 'dotenv-rails'   end end
#Ruby 2.2.2是Ruby['2.2.2',Ruby#u版本]的最低要求
#确保使用HTTPS git_source(:github)do | repo_name | repo_name获取github存储库=
“#{repo_name}/#{repo_name}”除非repo_name。包括?(“/”)
"https://github.com/#{repo_name}.git“如果
Gem::Version.new(Bundler::Version)
您的
Gemfile
看起来怎么样?请发布您的Gemfile和完整的错误消息,包括堆栈跟踪我如何访问Gemfile?对不起,如果我听起来很幼稚。我对这个很陌生。在项目的根目录中应该有一个名为
Gemfile
的文件。只需在文本编辑器中打开它,并将其内容粘贴到您的问题中。刚刚了解了如何粘贴它并做到了:)@spickermann