3
我有以下設立FOG基本上right out of the FOG website:霧錯誤:節點名稱也不servname提供
def fog_save_file_for(filename, file)
# create a connection
connection = Fog::Storage.new({
:provider => 'AWS',
:aws_access_key_id => '##',
:aws_secret_access_key => '##'
})
directory = connection.directories.get('upload_dir')
# list directories
#p connection.directories
# upload that resume
file = directory.files.create(
:key => filename,
:body => File.open("cv_uploads/provider_cvs/"+filename),
:public => true
)
end
在運行時我收到以下錯誤:
getaddrinfo: nodename nor servname provided, or not known (SocketError)
同樣在這裏,有沒有修好? –