crawlab-team / crawlab

Distributed web crawler admin platform for spiders management regardless of languages and frameworks. 分布式爬虫管理平台,支持任何语言和框架
https://www.crawlab.cn
BSD 3-Clause "New" or "Revised" License
11.33k stars 1.78k forks source link

which folder to place the yml config file when I deploy crawlab using docker-compose up? #159

Closed nomoreplay closed 5 years ago

nomoreplay commented 5 years ago

When I run the demo spider using default settings, it return " pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused " How can I fix this? thanks.

tikazyq commented 5 years ago

Hi, thanks for the feedback. I would suggest you to go to File tab on spider page and check out the scrapy spider file in detail. In there, you would see the environment variable named MONGO_HOST. The solution is to add MONGO_HOST as an environment variable with value as “mongo” in the Environment tab on spider page.