From 2d142d64014d7094119a4556337c90b5f4b0b900 Mon Sep 17 00:00:00 2001 From: Richard Dowinton Date: Tue, 31 Mar 2015 12:17:31 +0100 Subject: [PATCH] Added deployment section covering scrapyd-deploy and shub --- docs/index.rst | 4 ++-- docs/topics/deployment.rst | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 docs/topics/deployment.rst diff --git a/docs/index.rst b/docs/index.rst index 507b9bea9..cea652b89 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -150,7 +150,7 @@ Solving specific problems topics/leaks topics/images topics/ubuntu - topics/scrapyd + topics/deployment topics/autothrottle topics/benchmarking topics/jobs @@ -186,7 +186,7 @@ Solving specific problems :doc:`topics/ubuntu` Install latest Scrapy packages easily on Ubuntu -:doc:`topics/scrapyd` +:doc:`topics/deployment` Deploying your Scrapy project in production. :doc:`topics/autothrottle` diff --git a/docs/topics/deployment.rst b/docs/topics/deployment.rst new file mode 100644 index 000000000..8f8c55c2f --- /dev/null +++ b/docs/topics/deployment.rst @@ -0,0 +1,29 @@ +.. _topics-deployment: + +========== +Deployment +========== + +The recommended way to deploy Scrapy projects to a server is through `Scrapyd`_. + +.. _Scrapyd: https://github.com/scrapy/scrapyd + +Deploying to a Scrapyd Server +============================= + +You can deploy to a Scrapyd server using the `Scrapyd client `_. You can add targets to your ``scrapy.cfg`` file which can be deployed to using the ``scrapyd-deploy`` command. + +The basic syntax is as follows: + + scrapyd-deploy -p + +For more information please refer to the `Deploying your project`_ section. + +.. _Deploying your project: https://scrapyd.readthedocs.org/en/latest/deploy.html + +Deploying to Scrapinghub +======================== + +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``. + +.. _shub: https://github.com/scrapinghub/shub