open-eats / OpenEats

:pizza: Self Hosted Recipe Management App :hamburger:
https://open-eats.github.io/
MIT License
669 stars 102 forks source link

API doesn't seem to work #162

Closed gogithubmg closed 2 years ago

gogithubmg commented 2 years ago

Please advice why I can't use the OpenEats database? I have already read issue 151, still no joy.

Fresh install of OpenEats in Docker on VM Ubuntu 20.04.3 Home page is active, but that is where it stops. No recipes are available, login dialog is working, but afer clicking on the "Sign in" button nothing happens. When I choose "Browse", the cirkelkeeps going around. The openeats database is present and populated, When I go into the db_1 container, there is 1 super user account in table auth_user and I can see 31 recipes in recipe_recipe. I think the API doesn't work, however, how do I find out why?

contents of env_prod.list:

Database config

MYSQL_DATABASE=openeats MYSQL_ROOT_PASSWORD=xxxxxxxxxx

Django config

API_URL=0.0.0.0:8000 API_PORT=8000 DJANGO_SECRET_KEY=sdfsadfas32e98zsdvhhsnz6udvbksjdhfi4galshjfg DJANGO_SETTINGS_MODULE=base.settings DJANGO_DEBUG=False ALLOWED_HOST=* HTTP_X_FORWARDED_PROTO=true

Node config

NODE_ENV=production NODE_URL=localhost:8080 NODE_API_URL=http://localhost NODE_LOCALE=en

gogithubmg commented 2 years ago

Found it: port number should be in NODE_API_URL NODE_API_URL=http://localhost:8000 works.

gogithubmg commented 2 years ago

problem solved