Closed 3riatarka closed 2 years ago
On first load it does take a while because it's building the tables inside the database.
I had a similar issue and thought it bugged so I restarted it. Turns out I corrupted the database by not letting it complete the first setup so I had to delete and rebuild the database. Give it about 5 minutes before trying to access anything after a fresh install.
Commenting with a dirty fix, just in case anyone is going through this.
Using the Firefox developer tools I checked the console, and there was a warning that 'process' variable was not defined.
I took a quick look at the source code, and noticed it was mainly used to set the locale in this line (index.js:35):
const messages = require('./locale/'+process.env.NODE_LOCALE+'.json');
So, I went to the main.'.locale/en.json'
Now the application loads and seems to work fine.
I'm not capable of bringing up the web UI.
The Django admin interface is working (and it shows the mockup recipes), but whenever I try to access the front page, the only thing the browser loads is the following code:
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><meta name="description" content="The best recipes on the internet!"/><meta property="og:description" content="The best recipes on the internet!"/><meta property="og:title" content="OpenEats"/><meta property="og:image" content="/images/chef.png"/><link rel="manifest" href="/manifest.json"><link rel="shortcut icon" href="/images/favicon.ico"><link rel="icon" type="image/x-icon" href="/images/favicon.ico"><title>Open Eats</title><link href="/static/css/main.5db71e20.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="app"></div><script type="text/javascript" src="/static/js/main.d2bea86a.js"></script></body></html>
I modified the original docker-compose to fit my installation, but as far as I understand, it should be working by now. Here is my docker-compose:
Can anyone spot where the problem is? I've already checked the local folder binding and permissions, and they are exactly the same as other websites and containers that work perfectly fine.
Thank you all.