File tree Expand file tree Collapse file tree 4 files changed +16
-7
lines changed Expand file tree Collapse file tree 4 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ WORKDIR /app
6
6
7
7
# add `/app/node_modules/.bin` to $PATH
8
8
ENV PATH /app/node_modules/.bin:$PATH
9
-
9
+ # ENV PAWS_API_HOST paws-compose-server
10
10
# install app dependencies
11
11
COPY package.json ./
12
12
COPY package-lock.json ./
@@ -17,9 +17,11 @@ COPY public ./public
17
17
COPY src ./src
18
18
19
19
RUN npm run build
20
+
20
21
# add app
21
- FROM nginx AS host
22
+ FROM nginx:latest AS host
22
23
23
- COPY nginx-client.conf /etc/nginx/conf.d/default.conf
24
+ # COPY nginx-client.conf /etc/nginx/conf.d/default.conf
25
+ COPY default.conf.template /etc/nginx/templates/
24
26
25
27
COPY --from=builder /app/build/ /usr/share/nginx/html
Original file line number Diff line number Diff line change 1
1
upstream backend {
2
- server paws-compose-server:5000;
2
+ #server paws-compose-server:5000;
3
+ server ${PAWS_API_HOST}:5000;
3
4
}
4
5
5
6
server {
Original file line number Diff line number Diff line change @@ -20,9 +20,8 @@ services:
20
20
- db
21
21
volumes :
22
22
- src_archive:/app/static/raw_data
23
- environment :
24
- FLASK_ENV : development
25
-
23
+ environment :
24
+ - FLASK_ENV=development
26
25
27
26
client :
28
27
build : ./client
@@ -33,6 +32,7 @@ services:
33
32
- server
34
33
environment :
35
34
- CHOKIDAR_USEPOLLING=true
35
+ - PAWS_API_HOST=paws-compose-server
36
36
stdin_open : true
37
37
38
38
# using named volumes fixs a windows docker bug relating to container permissions
Original file line number Diff line number Diff line change
1
+ from app import create_app
2
+
3
+ app = create_app ()
4
+
5
+ if __name__ == "__main__" :
6
+ app .run ()
You can’t perform that action at this time.
0 commit comments