Commit 9eccb223 authored by jcunanan05's avatar jcunanan05

Move express generated files to server/

parent bba3aff8
......@@ -15,8 +15,8 @@
"npm-run-all": "^4.1.5"
},
"scripts": {
"start": "npm-run-all prod",
"server": "node ./bin/www",
"start": "npm run prod",
"server": "node ./server/bin/www",
"dev": "NODE_ENV=development npm-run-all server",
"prod": "NODE_ENV=production npm-run-all server"
}
......
......@@ -12,7 +12,7 @@ app.use(logger('dev'));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));
app.use(express.static(path.join(__dirname, '../public')));
app.use('/', indexRouter);
app.use('/users', usersRouter);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment