Hack run --data to work correctly
This commit is contained in:
parent
862e555516
commit
f931746226
|
@ -279,6 +279,10 @@ def cmd_run(cmd_args):
|
||||||
parser.add_argument("--port", type=int, default=5000)
|
parser.add_argument("--port", type=int, default=5000)
|
||||||
args = parser.parse_args(cmd_args)
|
args = parser.parse_args(cmd_args)
|
||||||
|
|
||||||
|
# Hack: the web server isn't wired up to take this configuration value
|
||||||
|
# directly, but it will work to stuff it into the first env checked
|
||||||
|
os.environ["INTAKE_DATA"] = args.data
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from intake.app import app
|
from intake.app import app
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue