Begin working on docker intergration

This commit is contained in:
2021-01-23 23:57:30 +11:00
parent a983d60b32
commit d0b383f5de
7 changed files with 9183 additions and 21 deletions
+2 -2
View File
@@ -16,11 +16,11 @@ app.use(formidable());
app.use('/api/accounts', require('./accounts'));
//send static files
app.use('/', express.static(path.resolve('../public')));
app.use('/', express.static(path.resolve(__dirname, 'public')));
//fallback to the index file
app.get('*', (req, res) => {
res.sendFile(path.resolve(`../public/index.html`));
res.sendFile(path.resolve(__dirname, 'public' , 'index.html'));
});
//startup