云服务 有人知道 gcloud 的存储怎么配置吗?

lukefan · 2019年02月01日 · 5632 次阅读

我尝试使用 carrierwave-google-storage,将内容上传到 google 云上。

我已经使用了科学上网手段。

对了现在有每人 300 美金的一年免费账号,不用白不用。

根据提示,我去创建了 keyfile。然后怎么都连接不上。

我选择的角色是对象存储管理员和存储管理员,两个都连不上。

也没有地方看到任何提示信息,不知道有没有人玩儿过?

我有试验了另外一种模式:



gem install google-cloud-storage
Preview
require "google/cloud/storage"

storage = Google::Cloud::Storage.new(
  project_id: "my-todo-project",
  credentials: "/path/to/keyfile.json"
)

依然不对,返回都是一样的:

Traceback (most recent call last):

1: from (irb):2

Faraday::ConnectionFailed (execution expired)

求助。

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请 注册新账号