File tree 5 files changed +7
-13
lines changed
5 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 1
1
FROM node:18 as build-deps
2
2
3
- EXPOSE 8080
3
+ EXPOSE 3000
4
4
5
5
# ENV DIRPATH /opt/app
6
- ENV REACT_APP_REAL_SERVER_BASE=https://smart-health-links-server.cirg.washington.edu/api
7
6
ENV NODE_ENV production
8
7
9
8
WORKDIR /opt/app
@@ -19,5 +18,4 @@ RUN npm run build
19
18
20
19
RUN cp build/404.html build/index.html
21
20
22
-
23
- CMD ["npm" , "run" , "build" ]
21
+ CMD ["npm" , "run" , "dev" ]
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ services:
4
4
shlips :
5
5
build : ./
6
6
ports :
7
- - " 127.0.0.1:${EXTERNAL_PORT:-9003}:8080 "
7
+ - " 127.0.0.1:${EXTERNAL_PORT:-9003}:3000 "
Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.1" ,
4
4
"private" : true ,
5
5
"scripts" : {
6
+ "start" : " npm install -g serve && serve -s build" ,
6
7
"dev" : " vite dev" ,
7
8
"build" : " vite build" ,
8
9
"preview" : " vite preview" ,
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import { dev } from '$app/environment';
3
3
4
4
export const API_BASE = 'https://smart-health-links-server.cirg.washington.edu/api' ;
5
5
export const VIEWER_BASE = new URL (
6
- `/ips${ dev ? '/index.html' : '' } #` ,
7
- // `/ips/index.html#`,
6
+ // `/ips${dev ? '/index.html' : ''}#`,
7
+ `/ips/index.html#` ,
8
8
window . location . href
9
9
) . toString ( ) ;
10
10
export const EXAMPLE_IPS =
Original file line number Diff line number Diff line change @@ -3,13 +3,8 @@ import { defineConfig } from 'vite';
3
3
4
4
export default defineConfig ( ( { mode } ) => ( {
5
5
plugins : [ sveltekit ( ) ] ,
6
- resolve : {
7
- alias : {
8
- $ips : mode === "production" ? "/ips" : "/ips/index.html" ,
9
- } ,
10
- } ,
11
6
server : {
12
7
host : true ,
13
- port : 8080
8
+ port : 3000
14
9
}
15
10
} ) ) ;
You can’t perform that action at this time.
0 commit comments