Skip to content

Instantly share code, notes, and snippets.

@rnovec
Created February 10, 2020 02:52
Show Gist options
  • Save rnovec/145adee2fe044fe173aba91aa9a2f956 to your computer and use it in GitHub Desktop.
Save rnovec/145adee2fe044fe173aba91aa9a2f956 to your computer and use it in GitHub Desktop.
Script to run Scrapyd in Heroku
#!/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