Search code examples
python-2.7scrapyscrapyd

scrapy deploy -L returns nothing


I'm trying to deploy my scrapy project, but I'm stuck

I definately do have working project and several spiders:

deploy@susychoosy:~/susy_scraper$ scrapy
Scrapy 0.17.0 - project: clothes_spider

and when I do scrapy list it shows list of all spiders.

I modified my scrapy.cfg file so it looks like that:

[settings]
default = clothes_spider.settings
[deploy:scrapyd]
url = http://localhost:6800/
project = clothes_spider

Then I do:

deploy@susychoosy:~/susy_scraper$ scrapy deploy -l
scrapyd              http://localhost:6800/

so everything seems to be fine, however in next step i dont see any projects available:

deploy@susychoosy:~/susy_scraper$ scrapy deploy -L scrapyd

deploy@susychoosy:~/susy_scraper$

I tried typing directly:

deploy@susychoosy:~/susy_scraper$ scrapy deploy -L scrapyd -p clothes_spider

deploy@susychoosy:~/susy_scraper$

But it didn't help.

Any suggestions what am I doing wrong?


Solution

  • You have to deploy a project to a target first:

    $ scrapy deploy scrapyd -p clothes_spider