CJWorkbench / cjworkbench

The data journalism platform with built in training
http://workbenchdata.com
Other
304 stars 45 forks source link

Custom resource urls for workbench instance on local network #266

Open mpiccolino-tealblue opened 3 years ago

mpiccolino-tealblue commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Thanks for the feedback Adam. I am accessing the endpoint from another machine in the local network.

Il Mer 15 Set 2021, 14:59 Adam Hooper @.***> ha scritto:

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?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CJWorkbench/cjworkbench/issues/266#issuecomment-919995658, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANR347ATOZTH4BQJWEBPIXDUCCKBRANCNFSM5ECDBM4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

adamhooper commented 3 years ago

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

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 commented 3 years ago

Many thanks, I'm no docker expert but I'll give it a go as soon as time permits and share the results back.

Il Mer 15 Set 2021, 16:56 Adam Hooper @.***> ha scritto:

... 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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CJWorkbench/cjworkbench/issues/266#issuecomment-920095354, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANR347FCGRZL7KB3672TNBLUCCXZLANCNFSM5ECDBM4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

lvrysis commented 2 years ago

This is my problem too...

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

mpiccolino-tealblue commented 2 years ago

Hi Lazaros, I didn't have a chance to check it out yet. Do let me know if it works for you. Marco

Il Lun 8 Nov 2021, 15:21 Lazaros Vrysis @.***> ha scritto:

This is my problem too...

[image: Screenshot 2021-11-08 at 16-19-27 Sign in] https://user-images.githubusercontent.com/12598216/140758361-d09966da-0d7d-4dbf-b583-9a06b2298c04.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CJWorkbench/cjworkbench/issues/266#issuecomment-963207788, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANR347HDFVWA53DKN5XSKIDUK7ME3ANCNFSM5ECDBM4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.