这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/vagrant-env/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Config < Vagrant.plugin("2", :config)
# config.env.enable __FILE__
def enable(vagrantfile = nil)
if vagrantfile
load File.dirname(vagrantfile) + '/.env'
load File.join File.dirname(vagrantfile), '.env'
else
# The default is .env in the current directory - but that may not be
# the same directory that the Vagrantfile is in
Expand Down