flatlogic / react-dashboard

🔥React Dashboard - isomorphic admin dashboard template (React.js, Bootstrap, Node.js, GraphQL, React Router, Babel, Webpack, Browsersync) 🔥

Home Page:https://flatlogic.com/admin-dashboards/react-dashboard/demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not working remote server

mikdatdogru opened this issue · comments

Hi;
maybe there is a simple solution but I might not have done it because I'm a beginner.

I build with 'yarn run build -- --release'

then I upload the build folder to my nginx node server.
screen shot 2017-10-08 at 21 33 07

then i run 'yarn install'
and then start the app with 'sudo pm2 start server.js'
screenshot at oct 08 21-31-52

and finally when I open the website, app can not find client and vendor file

screen shot 2017-10-08 at 21 36 25

Where am I doing wrong?

im sorry my mistake.

this works with nginx config

server {
   listen 80;

   server_name thickline.net;

   location / {
       proxy_pass http://localhost:3000;
       proxy_http_version 1.1;
       proxy_set_header Upgrade $http_upgrade;
       proxy_set_header Connection 'upgrade';
       proxy_set_header Host $host;
       proxy_cache_bypass $http_upgrade;
   }
}