PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, September 1, 2022

[FIXED] How to run a Luigi server against a custom URI

 September 01, 2022     luigi, nginx, nginx-reverse-proxy, tornado     No comments   

Issue

Can the Luigi server be run against http://localhost:8082/someString ?

Here is just one keyword convenient way to do the same in Dash. I was hoping to see a similar way in Luigi.


Solution

So I figured a way around on my own. First of all, there does not seem to be an external way of doing that. Only way I could do it is by modifying a this line in luigi/server.py:

299     handlers = [
300         (r'/api/(.*)', RPCHandler, {"scheduler": scheduler}),
301         (r'/someString', RootPathHandler, {'scheduler': scheduler}),

Then, curl -L http://localhost:8082/someString works fine.



Answered By - tash
Answer Checked By - Pedro (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing