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

Commit be01564

Browse files
author
Hadley King
committed
Add build/deploy shell script.
Changes to be committed: new file: build_deploy.sh modified: src/service/utils.js modified: src/views/Dashboard/components/LatestOrders/List.js
1 parent 471363b commit be01564

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

frontend/build_deploy.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
# Description: This is the building and deploying script for BCOS.
4+
5+
# Navigate to /home/portal_user/bco_editor/frontend/
6+
cd /home/portal_user/bco_editor/frontend/
7+
8+
# Get rid of the build folder.
9+
rm -rf build
10+
11+
# Install node packages, then build.
12+
# The install command has to be run with sudo?, see https://github.com/sass/node-sass/issues/2264
13+
# sudo -u portal_user npm install
14+
npm install
15+
npm run-script build
16+
17+
# Get rid of everything in the portal already.
18+
cd /var/www/html/portal/
19+
sudo rm -rf *
20+
21+
# Go back to the build folder and copy everything over.
22+
cd /home/portal_user/bco_editor/frontend/build/
23+
sudo cp -rf ./ /var/www/html/portal/
24+
25+
# Restart nginx and gunicorn.
26+
#systemctl restart nginx
27+
#systemctl restart gunicorn

frontend/src/service/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export const onLink = (router, toLink='/') => () => {
33
alert(router);
44
if (localStorage.formChanged === '1') {
5-
let result = window.confirm("You will be lost data. Please confirm.");
5+
let result = window.confirm("If you navigate away from this page you will lose your unsaved changes.");
66
if (result) {
77
router.push(toLink)
88
}

frontend/src/views/Dashboard/components/LatestOrders/List.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ const EnhancedTableToolbar = props => {
143143
</Typography>
144144
) : (
145145
<Typography className={classes.title} variant="h6" id="tableTitle">
146-
Bco Object List
146+
BioCompute Object List
147147
</Typography>
148148
)}
149149

@@ -166,7 +166,7 @@ const EnhancedTableToolbar = props => {
166166
variant="outlined"
167167
onClick={props.onGotoNewBco}
168168
>
169-
New BioCompute Object
169+
Create New BCO
170170
</Button>
171171
</Tooltip>
172172
)}

0 commit comments

Comments
 (0)