Skip to content

Commit

Permalink
Merge pull request #519 from connect-foundation/develop
Browse files Browse the repository at this point in the history
Release 1.0.1 hotfix ์ˆ˜์ •์‚ฌํ•ญ ์ ์šฉ.
  • Loading branch information
FullOfOrange authored Dec 27, 2019
2 parents 503cfa1 + 56908fc commit e231054
Show file tree
Hide file tree
Showing 10 changed files with 108 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ services:
- docker
env:
global:
- FE_IMAGE_TAG=1.0.0
- BE_IMAGE_TAG=1.0.0
- RESERVE_IMAGE_TAG=1.0.0
- FE_IMAGE_TAG=1.0.1
- BE_IMAGE_TAG=1.0.1
- RESERVE_IMAGE_TAG=1.0.1
- FE_IMAGE_NAME=bu-front
- BE_IMAGE_NAME=bu-back
- RESERVE_IMAGE_NAME=bu-reserve
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "client",
"version": "1.0.0",
"version": "1.0.1",
"private": true,
"scripts": {
"start": "react-scripts start",
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/molecules/DropDown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as S from './style';

export interface Item {
title: string;
desc?: string;
desc: string;
value: any;
}
interface Props {
Expand All @@ -24,7 +24,7 @@ function DropDown({
return (
<S.DropDownItem
key={index}
onClick={() => handleOnClick({ value, title })}
onClick={(): void => handleOnClick({ value, title, desc })}
>
<S.ItemTitle>{title}</S.ItemTitle>
<S.ItemDesc>{desc}</S.ItemDesc>
Expand Down
10 changes: 6 additions & 4 deletions client/src/components/molecules/SearchMap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,25 +65,27 @@ function SearchMap({ handleOnChange }: Props): React.ReactElement {

const handleKeywordChange = async (
e: React.ChangeEvent<HTMLInputElement>,
) => {
): Promise<void> => {
setKeyword(e.target.value);
setVisible(true);
};

const handleClickResult = ({
title,
desc,
value,
}: {
title: string;
desc: string;
value: {
latitude: number;
longitude: number;
};
}) => {
}): void => {
setVisible(false);
setKeyword(title);
setKeyword(title || desc);
setLocation(value);
if (handleOnChange) handleOnChange({ address: title, ...value });
if (handleOnChange) handleOnChange({ address: title || desc, ...value });
};

return (
Expand Down
1 change: 1 addition & 0 deletions client/src/components/organisms/EventSection/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ interface ContainerWrapperProps {

export const Container = styled.div<ContainerWrapperProps>`
display: flex;
width: 50%;
flex-direction: column;
color: ${palette('grayscale', 1)};
margin-bottom: 5rem;
Expand Down
65 changes: 65 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
version: '3.7'
services:
front:
image: jdd04026/bu-front:1.0.0-hotfix-1
container_name: front
ports:
- '8080:80'
networks:
- app
back:
image: jdd04026/bu-back:1.0.0
container_name: back
restart: always
# env ํŒŒ์ผ ๊ฐ™์€ ๊ฒฝ์šฐ๋Š” ์„œ๋ฒ„์šฉ์œผ๋กœ ๋”ฐ๋กœ ์„ค์ •์„ ํ•ด์„œ ๋„ฃ์–ด์ฃผ์ž.
env_file:
- .env
ports:
- '3000:3000'
networks:
- app
reserve:
image: jdd04026/bu-reserve:1.0.0
container_name: reserve
restart: always
# env ํŒŒ์ผ ๊ฐ™์€ ๊ฒฝ์šฐ๋Š” ์„œ๋ฒ„์šฉ์œผ๋กœ ๋”ฐ๋กœ ์„ค์ •์„ ํ•ด์„œ ๋„ฃ์–ด์ฃผ์ž.
# ์„œ๋ฒ„์˜ envํŒŒ์ผ ์„ค์ •๊ณผ ๋™์ผํ•˜๋‹ค.
env_file:
- ./env
ports:
- '4000:3000'
networks:
- app
db:
image: jdd04026/mariadb-locale:latest
container_name: bu-db
volumes:
- dbdata:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=pass
- MYSQL_DATABASE=bookus
- MYSQL_USER=user
- MYSQL_PASSWORD=pass
ports:
- '3306:3306'
networks:
- app
redis:
image: redis:5.0.7-alpine
container_name: bu-redis
volumes:
- redisdata:/data
ports:
- '6379:6379'
networks:
- app

networks:
app:
name: app_bridge

volumes:
dbdata:
driver: local
redisdata:
driver: local
27 changes: 27 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# ์ด๊ฒƒ์€ /etc/nginx/conf.d/default.conf๋กœ ์‹ฌ๋ณผ๋ฆญ ๋งํฌ๋ฅผ ๊ฐ€์ง„ ํŒŒ์ผ๋กœ ์ƒ์„ฑํ•˜๋ฉด ๋จ.
# /etc/nginx/nginx.conf ์—์„œ ์ƒ์œ„์˜ ํŒŒ์ผ์„ includeํ•  ๊ฒƒ์ž„.
# ํ‚คํŒŒ์ผ๋„ ๋™์ผํ•˜๊ฒŒ ์„ค์ •ํ•˜๊ธฐ.

server {
listen 443 ssl;
server_name www.bookus.kr;

ssl_certificate /root/cert.pem;
ssl_certificate_key /root/key.pem;

location / {
proxy_pass http://127.0.0.1:8080;
}
location /api {
proxy_pass http://127.0.0.1:3000;
}
location /api/users/reserve {
proxy_pass http://127.0.0.1:4000;
}
}

server {
listen 80;
server_name www.bookus.kr;
return 301 https://$host$request_uri;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bookus",
"private": true,
"version": "1.0.0",
"version": "1.0.1",
"main": "index.js",
"license": "MIT",
"workspaces": {
Expand Down
2 changes: 1 addition & 1 deletion reserve-server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "reserve-server",
"private": true,
"version": "1.0.0",
"version": "1.0.1",
"main": "index.js",
"license": "MIT",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "server",
"private": true,
"version": "1.0.0",
"version": "1.0.1",
"main": "index.js",
"license": "MIT",
"scripts": {
Expand Down

0 comments on commit e231054

Please sign in to comment.