Skip to content

Commit

Permalink
Merge pull request #295 from biothings/delete-proxy
Browse files Browse the repository at this point in the history
fix: delete proxy handler not needed anymore
  • Loading branch information
marcodarko authored Oct 22, 2024
2 parents 6b37c3a + d0fe6bc commit a3037fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 68 deletions.
61 changes: 0 additions & 61 deletions discovery/handlers/proxy.py

This file was deleted.

9 changes: 2 additions & 7 deletions index.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from tornado.options import define, options

from discovery.handlers import HANDLERS
from discovery.handlers.proxy import ProxyHandler
from discovery.notify import update_n3c_routine
from discovery.utils.backup import daily_backup_routine
from discovery.utils.coverage import daily_coverage_update
Expand Down Expand Up @@ -48,10 +47,6 @@ def run_routine():

if __name__ == "__main__":
options.parse_command_line()
if options.debug:
# Add proxy handler for dev purposes only
_handlers = HANDLERS + [(r"/(.*)", ProxyHandler, {"proxy_url": options.proxy_url})]
main(_handlers, use_curl=True)
else:
if not options.debug:
crontab("0 0 * * *", func=run_routine, start=True) # run daily at mid-night
main(HANDLERS, use_curl=True)
main(HANDLERS, use_curl=True)

0 comments on commit a3037fc

Please sign in to comment.