Created
February 10, 2020 02:52
-
-
Save rnovec/145adee2fe044fe173aba91aa9a2f956 to your computer and use it in GitHub Desktop.
Script to run Scrapyd in Heroku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from os.path import join, dirname | |
from sys import argv | |
from twisted.scripts.twistd import run | |
import scrapyd_heroku as project | |
def main(): | |
argv[1:1] = ['-n', '-y', join(dirname(project.__file__), 'app.py')] | |
run() | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment