nginyc / rafiki

Rafiki is a distributed system that supports training and deployment of machine learning models using AutoML, built with ease-of-use in mind.
Apache License 2.0
36 stars 23 forks source link

The web admin cannot read host address from environmental variables #153

Closed wild-flame closed 5 years ago

wild-flame commented 5 years ago

Even after run

export RAFIKI_ADDR=ncrs.d2.comp.nus.edu.sg

The web admin is use the default host localhost as the base of API endpoint in production environment.

should take a look into the docker image and figure out why.

vaanforz commented 5 years ago

Currently, I can only successfully access web admin on NCRS host by hardcoding:

window.ADMIN_HOST = 'ncrs.d2.comp.nus.edu.sg' window.ADMIN_PORT = 3000

on index.html instead of updating .env.sh.