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

[ERROR] White website #52

Open
WaterKnight1998 opened this issue Apr 28, 2020 · 7 comments
Open

[ERROR] White website #52

WaterKnight1998 opened this issue Apr 28, 2020 · 7 comments

Comments

@WaterKnight1998
Copy link

When I access the website I see a White Landing Page.
I built it as follows:

git clone https://github.com/metasfresh/metasfresh-docker.git
cd metasfresh-docker/
docker-compose build
docker-compose up -d
@WaterKnight1998 WaterKnight1998 changed the title White website [ERROR] White website Apr 28, 2020
@petrican
Copy link
Contributor

I believe CORS is enabled by default. Can you pls try accessing the URL with the browser having disabled web security ? Thanks

@WaterKnight1998
Copy link
Author

WaterKnight1998 commented Apr 30, 2020

I believe CORS is enabled by default. Can you pls try accessing the URL with the browser having disabled web security ? Thanks

It was solved editing config.js

I suggest you to update installation documentation

@TKlerx
Copy link

TKlerx commented Oct 9, 2020

@WaterKnight1998 How did you edit config.js?

@metas-jb
Copy link
Member

metas-jb commented Oct 22, 2020

@TKlerx

You have two ways of editing the config.js:

  1. in your docker-compose.yml
  • #- WEBAPI_URL=http://example.com:8080
    • shall point to where your system shall be available from the clients (yeah I know, naming is a bit confusing and suboptimal but it's from pretty early days where webapi needed to be separated by webui on port-level)
    • so if you want your clients to use https://mymetasfresh_server.com you would set WEBAPI_URL=https://mymetasfresh_server.com
  • this is a global environment variable which is used to fill in the blanks in config.js
  1. manually in metasfresh-docker/webui/sources/configs/config.js

You can verify your settings are correct by:

  • checking in docker:
    • docker exec metasfresh-docker_webui_1 cat /opt/metasfresh-webui-frontend/dist/config.js
  • or checking dev-tools in your browser
    • eg. chrome: ctrl+shift+i -> Sources Tab -> hard refresh page (eg. ctrl+shift+r)
      They both shall point to the url of your browser - aka where your clients will access the server.

@TKlerx
Copy link

TKlerx commented Nov 6, 2020

Thanks for the reply. Somehow, I did not follow this thread any more. My solution was to use this docker-compose.yml file:
https://forum.metasfresh.org/t/getting-a-blank-white-page-after-doing-the-docker-setup-in-centos-7/1923/3

@LucasCLeal
Copy link

We were exited to used metafresh as a case study for a discipline of software testing in my university, unfortunately this bug killed the idea. Hope you guys fix it till next year.

@thpallround
Copy link

It's nearly 4 years since this bug was reported, why isn't this problem solved?
This is the second erp-software with issues due to documentation an configuration in/with docker. Why is this such an problem?
I would realy like tu use the software but there is no way like that.

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

6 participants