Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.

Commit c5ef92b

Browse files
authored
Merge pull request #138 from SELab-2/development
Merging dev into main
2 parents 07f1792 + 74c1e99 commit c5ef92b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/deployment.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ jobs:
4242
- name: Build react frontend with yarn
4343
run: yarn build
4444
working-directory: ./frontend
45-
- name: Copy react build files to production folder
46-
run: cp -R out/ /home/selab2/production/
47-
working-directory: ./frontend
45+
- name: Copy react files to production folder
46+
run: cp -R frontend/ /home/selab2/production/
47+
- name: Run the react app
48+
run: sudo -E /home/selab2/production/start_frontend.sh
4849

4950
- name: Set up JDK ${{ matrix.java-version }}
5051
uses: actions/setup-java@v2

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"private": true,
33
"scripts": {
44
"dev": "next dev",
5-
"build": "next build && next export",
5+
"build": "next build",
66
"start": "next start",
77
"lint": "yarn run eslint . --ext .js,.jsx,.ts,.tsx",
88
"prettier:check": "yarn prettier --check .",

0 commit comments

Comments
 (0)