【问题标题】:Loopback storage error - Path does not exist: undefined环回存储错误 - 路径不存在:未定义
【发布时间】:2015-04-28 20:04:19
【问题描述】:

请帮忙

http://docs.strongloop.com/display/public/LB/Storage+service

我想将其设置为上传到容器机架空间

但是slc运行后报错

http://prntscr.com/69uvcb

    /root/example-file-storage/node_modules/loopback-component-storage/lib/providers/filesystem/index.js:25
    throw new Error('FileSystemProvider: Path does not exist: ' + this.root);
          ^
Error: FileSystemProvider: Path does not exist: undefined

我的配置

/server/datasources.json 

 "rackspace": {
    "name": "rackspace",
    "connector": "loopback-component-storage",
    "username": "*****",
    "apiKey": "*****************************",
    "region": "IAD"
  }

root@rest:~/lifefilm/server# slc -v
strongloop v2.10.3 (node v0.10.36)
├── strong-arc@1.1.0
├── strong-build@1.0.3 (5a43a57)
├─┬ strong-supervisor@1.4.1 (c945bd1)
│ └── strong-agent@1.3.2
├── node-inspector@0.7.4
├── strong-deploy@1.1.4 (5e25e21)
├── strong-pm@1.7.2 (315d448)
├── strong-registry@1.1.4 (aab3dbb)
├── nodefly-register@0.3.3
└── generator-loopback@1.7.3 (9dc370f)

【问题讨论】:

标签: rackspace-cloud loopbackjs strongloop


【解决方案1】:

使用 rackspace 时添加此行

...
root: '/tmp/storage',
authUrl: 'https://identity.api.rackspacecloud.com',
...

示例:gist.github.com/rosskukulinski/6071fc347b9ab1223707

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-05-11
    • 2015-05-15
    • 1970-01-01
    相关资源
    最近更新 更多