mirror of https://github.com/scrapy/scrapy.git
added quick script script to launch scrapyd
This commit is contained in:
parent
841007b5c5
commit
5de5cac43e
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
repotac="$(dirname $0)/../extras/scrapyd.tac"
|
||||
|
||||
if [ -f "$repotac" ]; then
|
||||
tacfile="$repotac"
|
||||
elif [ -f "/usr/share/scrapyd/scrapyd.tac" ]; then
|
||||
tacfile="/usr/share/scrapyd/scrapyd.tac"
|
||||
else
|
||||
echo "Unable to find scrapy.tac file"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
twistd -ny "$tacfile"
|
||||
Loading…
Reference in New Issue