Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom resource urls for workbench instance on local network #266

Open
mpiccolino-tealblue opened this issue Sep 15, 2021 · 6 comments
Open

Comments

@mpiccolino-tealblue
Copy link

Congrats on an awesome tool. I really do hope that, despite the commercial shutdown, the open source project will be taken care of, it's just too good to go!

I tried to get the project up and running following

https://github.com/CJWorkbench/cjworkbench/wiki/Setting-up-a-development-environment

I deployed the project to a server machine in my local network.

Everything seems to runs smoothly, except all webpage resources point to localhost:8003, instead of the server's network IP. Hence, there are no scripts, no CSS and no images.
Where can this be fixed / configured?

Many thanks!

@adamhooper
Copy link
Contributor

Somebody else has reported the same problem. I confess myself a bit confused....

Are you trying to serve Workbench to others on your network? The dev mode isn't made for that. (Admittedly, the Kubernetes setup is a chore.)

Or are you unable to access localhost:8003 when you browse to it on your own dev machine?

@mpiccolino-tealblue
Copy link
Author

mpiccolino-tealblue commented Sep 15, 2021 via email

@adamhooper
Copy link
Contributor

... I hope you're adept at docker-compose.yml, then:

  • You'll want to add a STATIC_URL=http://192.168.1.2:8003 or some-such to the frontend environment
  • You'll also want to set CJW_HOME_URL="/"
  • And TUS_EXTERNAL_URL_PREFIX_OVERRIDE=192.168.1.2:8002 (for file-upload to work)

Please let me know how it goes. If it works, please share your docker-compose.yml. Other users could refer to it if they want to do a similar thing.

@mpiccolino-tealblue
Copy link
Author

mpiccolino-tealblue commented Sep 15, 2021 via email

@lvrysis
Copy link

lvrysis commented Nov 8, 2021

This is my problem too...

Screenshot 2021-11-08 at 16-19-27 Sign in

@mpiccolino-tealblue
Copy link
Author

mpiccolino-tealblue commented Nov 8, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants