Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
reservation-service
Commits
04d81309
Commit
04d81309
authored
Nov 06, 2020
by
Daeki Yoon
Browse files
homepage
parent
81cf8c01
Changes
2
Show whitespace changes
Inline
Side-by-side
client/package.json
View file @
04d81309
...
...
@@ -48,5 +48,5 @@
]
},
"proxy"
:
"http://localhost:3030"
,
"homepage"
:
"
https://compmath.korea.ac.kr/app/rental
"
"homepage"
:
"
.
"
}
server/express.js
View file @
04d81309
...
...
@@ -18,6 +18,8 @@ if (isProduction) {
root_url
=
'
/app/rental
'
}
console
.
log
(
'
isProductiion=
'
,
isProduction
)
const
CURRENT_WORKING_DIR
=
process
.
cwd
()
const
app
=
express
()
...
...
@@ -27,7 +29,7 @@ app.use(bodyParser.urlencoded({ extended: true }))
app
.
use
(
cors
())
console
.
log
(
'
path=
'
,
path
.
join
(
CURRENT_WORKING_DIR
,
'
client
'
,
'
build
'
))
app
.
use
(
'
/
'
,
express
.
static
(
path
.
join
(
CURRENT_WORKING_DIR
,
'
client
'
,
'
build
'
)))
app
.
use
(
path
.
join
(
root_url
,
'
/
'
)
,
express
.
static
(
path
.
join
(
CURRENT_WORKING_DIR
,
'
client
'
,
'
build
'
)))
app
.
use
(
path
.
join
(
root_url
,
'
/api/
'
),
indexRouter
);
app
.
use
(
path
.
join
(
root_url
,
'
/api/users
'
),
usersRouter
,
reservesRouter
);
...
...
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