Skip to content

Commit

Permalink
Restore scrapy.cfg, and use ~/.config/scrapy.cfg for deployment confi…
Browse files Browse the repository at this point in the history
…guration (see scrapy.utils.get_sources()), closes #358
  • Loading branch information
jpmckinney committed Apr 21, 2020
1 parent 4961fa7 commit a99c058
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
__pycache__
.pytest_cache
venv/
/data/
/*.egg-info
/.coverage
/build
/data
/docs/_build
/htmlcov
/scrapy.cfg
9 changes: 3 additions & 6 deletions docs/scrapyd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,11 @@ On your local machine, :ref:`install Kingfisher Scrape<install>`.
Configure Kingfisher Scrape
---------------------------

Create a ``scrapy.cfg`` file in your ``kingfisher-scrape`` directory using the template below, and set the ``url`` variable to point to the remote server:
Create a ``~/.config/scrapy.cfg`` file using the template below, and set the ``url`` variable to point to the remote server:

.. code-block:: ini
[settings]
default = kingfisher_scrapy.settings
[deploy]
[deploy:kingfisher]
url = http://localhost:6800/
project = kingfisher
Expand All @@ -68,7 +65,7 @@ On your local machine, deploy the spiders in Kingfisher Scrape to Scrapyd, using

.. code-block:: bash
scrapyd-deploy
scrapyd-deploy kingfisher
Remember to run this command every time you add or update a spider.

Expand Down
2 changes: 2 additions & 0 deletions scrapy.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[settings]
default = kingfisher_scrapy.settings

0 comments on commit a99c058

Please sign in to comment.