plynx-team / plynx

PLynx is a domain agnostic platform for managing reproducible experiments and data-oriented workflows.
https://plynx.com
Apache License 2.0
301 stars 37 forks source link

Failed to click "Try live demo" in remote server deployment #19

Open qiwihui opened 5 years ago

qiwihui commented 5 years ago

When deploy plynx on a remote server instead of on localhost, "Try live demo" will failed due to the ui endpoint api url points to http://localhost:5000/plynx/api/v0. But it needs to be http://<remote-server-ip>:5000/plynx/api/v0.

khaxis commented 5 years ago

Hi, thank you for reporting it!

The problem relates to configuration. Currently you will have to change a single line in config file: https://github.com/khaxis/plynx/blob/master/ui/src/configConsts.js

This is not probably the best solution, but I will try to make a change in a new version.

FIY "Try live demo" button is mostly for demo purposes at plynx.com. I expect it will be deprecated at some point. Some config tips:

auth:
  secret_key:    # Leave it blank if you want to use a single default user with no password

demo:
  enabled: false    # if you don't expect demo mode, disable it