{% extends 'base.html' %} {% block title %}addversion{% endblock %} {% block head %} {% if SCRAPYD_SERVERS_AMOUNT > 1 %} {% endif %} {% endblock %} {% block body %}
Deploying your project involves eggifying it and uploading the egg to Scrapyd. (See Scrapyd addversion.json) You can do this manually, but the easiest way is to use the scrapyd-deploy tool. (See scrapyd-client)
Note: Scrapyd uses the distutils LooseVersion to interpret the version numbers you provide. (See _ClassType LooseVersion) And setting the version arbitrarily may cause the scrapyd API 'listversions' to raise error like "builtins.TypeError: '<' not supported between instances of 'str' and 'int'".
Auto eggifying (projects in the host where ScrapydWeb runs)
Upload egg file
Upload compressed file
tar -czvf projectname.tar.gz /home/username/myprojects/projectname