evoluteur / evolutility-ui-react

Framework for building CRUD UIs for Hasura GraphQL with models rather than code.
https://evoluteur.github.io/evodemo/
GNU Affero General Public License v3.0
113 stars 30 forks source link

Production server fails with file not found error #11

Closed david-pfx closed 5 years ago

david-pfx commented 6 years ago

The error is: Error: ENOENT: no such file or directory, stat 'D:\MyDocs\dev\Evolutility\evolutility-ui-react\src\public\index.html*.css'

Apparently caused by having moved the server.js. Changes required:

res.sendFile(path.join(__dirname, '../public', 'index.html'))

Also

app.use(express.static(path.join(__dirname, '../public')))