当我尝试将会话更新为redis时出现Sails错误

时间:2018-04-15 16:47:50

标签: docker redis sails.js

我尝试将sails代码部署到 docker (使用docker-compose),但我收到错误并使用docker中的redis配置

配置文件

friend std::ifstream& operator>>(std::ifstream& if_obj, Stock_Type& stock_obj);

docker-compose file pastebin

session: {
    adapter: '@sailshq/connect-redis',
    url: 'redis://:password@localhost:6379/1'
}

错误文本pastebin

version: '3'
services: 
    cachedb:
    image: redis
    restart: always
stag:
    build: .
    command: 'yarn start:stag' # NODE_ENV=staging node app.js
    ports:
        - '8000:1337'
    depends_on:
        - cachedb

  • 操作系统:macOS 10.13.4 17E199 x86_64 MacBookPro11,4
  • Shell:zsh 5.3
  • 终端:iTerm2
  • 节点:v9.10.1
  • Npm:5.6.0
  • 纱线:1.5.1(USE)
  • Sails:1.0.0
  • 其他:pastebin

参考

  1. 完整泊坞广告配置:pastebin
  2. 错误日志:pastebin
  3. Yarn.lock:pastebin

0 个答案:

没有答案