open-eats / OpenEats

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

Problems installing on Ubuntu Server with nginx #98

Closed mourningsun75 closed 5 years ago

mourningsun75 commented 5 years ago

Just installed as described here:

https://github.com/open-eats/OpenEats/blob/master/docs/Running_the_App_Without_Docker.md

Taken the nginx Config from here https://github.com/open-eats/openeats-nginx/blob/master/default.conf#L38

No errors. But when i open the url nothing happens. Only the cook icon and page title on the tab are shown.

Here is my config: ` upstream api { ip_hash; server api:5210; }

server {

listen 443 ssl; include /etc/nginx/snippets/ssl.conf; include /etc/nginx/snippets/ssl-params.conf;

#listen 80;
server_name openeats.bunkertor.org;

location / {
    root /opt/openeats/openeats-nginx/public-ui;
    try_files $uri $uri/ /index.html;
}

location /static/  {
    root /opt/openeats/openeats-nginx/public-ui;
    gzip on;
    gzip_types text/plain text/xml text/css
        text/comma-separated-values
        text/javascript application/x-javascript
        application/javascript
        application/atom+xml;

    expires max;
}

location /api/ {
    proxy_pass http://api;
    proxy_set_header Host $http_host;
}

location /admin/ {
    proxy_pass http://api;
    proxy_set_header Host $http_host;
}

location /static-files/ {
    root /opt/openeats/openeats-nginx/static-files;
    try_files $uri /static-files/$uri;
}

location /site-media/ {
    root /opt/openeats/openeats-nginx/site-media;
    try_files $uri /site-media/$uri;
}

} `

Could someone please help me?

mourningsun75 commented 5 years ago

Nobody can Help? No Docker, nginx and Ubuntu Server

JasonSanDiego commented 5 years ago

I haven't installed via this method, but have you checked the Chrome console for errors?

mourningsun75 commented 5 years ago

Yes, here is the error:

index.js:35 Uncaught ReferenceError: process is not defined
    at Object.<anonymous> (index.js:35)
    at t (bootstrap 9ce35404300a1dd9ec6c:19)
    at Object.<anonymous> (main.ecf71638.js:28807)
    at t (bootstrap 9ce35404300a1dd9ec6c:19)
    at bootstrap 9ce35404300a1dd9ec6c:62
    at bootstrap 9ce35404300a1dd9ec6c:62
JasonSanDiego commented 5 years ago

Sorry, I'm not able to help. Some Googling suggests it has something to do with the webpack, so clearly something isn't deployed correctly, but that's about all I'm able to gather, as I'm not familiar with Node/JS at this level.

felinira commented 4 years ago

I had the same issue and solved it. You have probably missed this line: . .env If you don't source the environment you will get this error. The error is very misleading though.