mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-24 07:03:52 +00:00
added quick script script to launch scrapyd
This commit is contained in:
parent
841007b5c5
commit
5de5cac43e
14
bin/scrapyd
Executable file
14
bin/scrapyd
Executable file
@ -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…
x
Reference in New Issue
Block a user