Skip to content

Commit d8184a7

Browse files
committed
Merge pull request scrapy#1124 from rdowinton/deployment-doc
Added deployment section covering scrapyd-deploy and shub
2 parents 4b11501 + 2d142d6 commit d8184a7

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Solving specific problems
150150
topics/leaks
151151
topics/images
152152
topics/ubuntu
153-
topics/scrapyd
153+
topics/deployment
154154
topics/autothrottle
155155
topics/benchmarking
156156
topics/jobs
@@ -186,7 +186,7 @@ Solving specific problems
186186
:doc:`topics/ubuntu`
187187
Install latest Scrapy packages easily on Ubuntu
188188

189-
:doc:`topics/scrapyd`
189+
:doc:`topics/deployment`
190190
Deploying your Scrapy project in production.
191191

192192
:doc:`topics/autothrottle`

docs/topics/deployment.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.. _topics-deployment:
2+
3+
==========
4+
Deployment
5+
==========
6+
7+
The recommended way to deploy Scrapy projects to a server is through `Scrapyd`_.
8+
9+
.. _Scrapyd: https://github.com/scrapy/scrapyd
10+
11+
Deploying to a Scrapyd Server
12+
=============================
13+
14+
You can deploy to a Scrapyd server using the `Scrapyd client <https://github.com/scrapy/scrapyd-client>`_. You can add targets to your ``scrapy.cfg`` file which can be deployed to using the ``scrapyd-deploy`` command.
15+
16+
The basic syntax is as follows:
17+
18+
scrapyd-deploy <target> -p <project>
19+
20+
For more information please refer to the `Deploying your project`_ section.
21+
22+
.. _Deploying your project: https://scrapyd.readthedocs.org/en/latest/deploy.html
23+
24+
Deploying to Scrapinghub
25+
========================
26+
27+
You can deploy to Scrapinghub using Scrapinghub's command line client, `shub`_. The configuration is read from the ``scrapy.cfg`` file just like ``scrapyd-deploy``.
28+
29+
.. _shub: https://github.com/scrapinghub/shub

0 commit comments

Comments
 (0)