Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
schedules
Commits
df77d0e7
Commit
df77d0e7
authored
Aug 30, 2018
by
Zac Wood
Browse files
fixed path in app.js
parent
cabb8c32
Pipeline
#2812
passed with stage
in 2 minutes and 27 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
schedules_web/app.js
View file @
df77d0e7
var
path
=
require
(
"
path
"
);
var
express
=
require
(
"
express
"
);
var
path
=
require
(
'
path
'
);
var
express
=
require
(
'
express
'
);
var
DIST_DIR
=
__dirname
;
var
PORT
=
300
0
;
var
DIST_DIR
=
path
.
join
(
__dirname
,
'
dist
'
)
;
var
PORT
=
808
0
;
var
app
=
express
();
//Serving the files on the dist folder
app
.
use
(
express
.
static
(
DIST_DIR
));
//Send index.html when the user access the web
app
.
get
(
"
*
"
,
function
(
req
,
res
)
{
res
.
sendFile
(
path
.
join
(
DIST_DIR
,
"
index.html
"
));
app
.
get
(
'
*
'
,
function
(
req
,
res
)
{
res
.
sendFile
(
path
.
join
(
DIST_DIR
,
'
index.html
'
));
});
app
.
listen
(
PORT
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment