Skip to content

Commit

Permalink
Merge branch 'release' into backend
Browse files Browse the repository at this point in the history
  • Loading branch information
codEnjoyer committed Nov 16, 2023
2 parents e2f0150 + 7218ad2 commit 7f49980
Show file tree
Hide file tree
Showing 54 changed files with 2,949 additions and 234 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/actions-frontend.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: Actions Frontend
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x ]
steps:
- uses: actions/checkout@v3
- name: Проект работает на Ноде версии ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: ./frontend
- name: Установка модулей
run: npm install
- name: Сборка проекта
run: npm run build
- name: Запуск веб-приложения
run: npm run dev
#name: Actions Frontend
#on: [ push ]
#jobs:
# build:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# node-version: [ 18.x ]
# steps:
# - uses: actions/checkout@v3
# - name: Проект работает на Ноде версии ${{ matrix.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# - uses: ./frontend
# - name: Установка модулей
# run: npm install
# - name: Сборка проекта
# run: npm run build
# - name: Запуск веб-приложения
# run: npm run dev
5 changes: 2 additions & 3 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ ENV PATH /app/node_modules/.bin:$PATH
COPY package.json ./
COPY package-lock.json ./

RUN npm ci --silent
RUN npm install react-scripts@3.4.1 -g --silent
RUN npm i --silent

COPY . /app/

RUN npm run build
RUN npm install -g serve

CMD serve -s build -l ${FRONT_APP_PORT}
CMD serve -s dist -l ${FRONT_APP_PORT}
4 changes: 4 additions & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
<head>
<meta charset="UTF-8"/>
<title>Adaptify</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@500&family=Oswald&display=swap"
rel="stylesheet">
</head>
<body>
<div id="root">
Expand Down
Loading

0 comments on commit 7f49980

Please sign in to comment.