Commit 6c92953a authored by Markus Opolka's avatar Markus Opolka
Browse files

Add static path to express server to serve app

parent 01025383
......@@ -134,6 +134,8 @@ app.use(function (req, res, next) {
next()
})
app.use('/', express.static('dist'))
app.get('/api/search', function (req, res) {
// Search Endpoint with query parameters
// <element attribute="value">content</element>
......
{
"name": "massicot-letters",
"version": "1.0.0",
"description": "Massicot Letter Project",
"description": "FAU Massicot Letter Project",
"author": "Markus Opolka <markus@martialblog.de>",
"private": true,
"scripts": {
"api": "node api.js",
"app": "node app.js",
"dev": "node build/dev-server.js",
"start": "npm run dev",
"build": "node build/build.js",
......
REM Windows Script to Start API
REM Windows Script to Start App
CD C:/
CALL git pull
CALL npm install --production
CALL node api.js
CALL node app.js
REM Windows Script to Update App
CD C:/
CALL git pull
CALL npm install
CALL npm run build
Supports Markdown
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