Skip to content

Commit a285e83

Browse files
committed
Link fixing and Dockerfile update
1. Updated the broken link for documentation and demo 2. Updated the Dockerfile for deployment. Uncommented the 3. Updated the favicon of Planimation 4. Updated documentation for docker deployment
1 parent 8aa5cb9 commit a285e83

File tree

6 files changed

+30
-18
lines changed

6 files changed

+30
-18
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ RUN npm run build
1010
FROM nginx:stable-alpine
1111
COPY --from=build /app/build /usr/share/nginx/html
1212
COPY --from=build /app/nginx.conf /etc/nginx/conf.d/default.conf
13-
EXPOSE 80
14-
CMD sed -i -e 's/$PORT/'"$PORT"'/g' /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'
13+
EXPOSE 8080
14+
CMD nginx -g 'daemon off;'
15+
16+
# Use the below settings for deploying website on Heroku
17+
# CMD sed -i -e 's/$PORT/'"$PORT"'/g' /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'

ReadMe.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ planimation is a modular and extensible open source framework to visualize seque
77
[1.0 Project Overview](#1.0)
88

99
[2.0 Deployment](#2.0)
10-
10+
1111
[3.0 Development Environment](#3.0)
1212

1313
[4.0 Using the system](#4.0)
14-
14+
1515
[5.0 Architecture and Design](#5.0)
1616

1717
[6.0 Change Log](#6.0)
@@ -26,7 +26,7 @@ Planimation is an openSource framework to visualise sequential solutions of plan
2626

2727
The planimation goals are:
2828

29-
* help to debug PDDL code for Online PDDL Editor users
29+
* help to debug PDDL code for Online PDDL Editor users
3030

3131
* increases user understanding of planning problems
3232

@@ -52,7 +52,7 @@ The specific goals are:
5252

5353
<h1 id="2.0"> 2.0 Deployment </h1>
5454

55-
## Overview
55+
## Overview
5656

5757
Before building your development environment, you’ll need:
5858
A code editor
@@ -98,7 +98,7 @@ git clone https://github.com/visual-heuristics/frontend-js
9898

9999
```
100100
git config user.name "Mona Lisa"
101-
101+
102102
git config user.email "[email protected]"
103103
```
104104
## Install frontend development environment:
@@ -116,7 +116,7 @@ npm run start
116116
```
117117
This will open a page on your browser, and you should see a jumping rabbit like this:
118118

119-
119+
120120

121121
Now, the development environment is all set up! Start coding😊
122122

@@ -127,6 +127,13 @@ yarn test //or “npm test” or testing in Jest
127127
```
128128
Open the link in your browser, and you should see a visualisation of block world .
129129

130+
### Deployment with Docker
131+
```
132+
docker build -t planimation_js .
133+
docker run -dp 8080:8080 planimation_js
134+
```
135+
Map TCP port 8080 in the container to port 8080 on the Docker host. Please make
136+
sure the docker port is same as the port number in nginx.conf.
130137

131138
<h1 id="3.0"> 3.0 Development Environment</h1>
132139

@@ -148,7 +155,7 @@ https://confluence.cis.unimelb.edu.au:8443/display/VH/Development+Environment+Se
148155
## 4.1. Project Homepage:
149156

150157
In coordinator homepage: Shows the four sections of the project.
151-
https://confluence.cis.unimelb.edu.au:8443/display/VH/Design+Notebook
158+
https://confluence.cis.unimelb.edu.au:8443/display/VH/Design+Notebook
152159

153160
### 4.1.1 Go to PDDL file upload page
154161

@@ -225,7 +232,7 @@ https://confluence.cis.unimelb.edu.au:8443/display/VH/Operational+Concept+Docume
225232
https://confluence.cis.unimelb.edu.au:8443/display/VH/Developer+Information+Frontend
226233

227234

228-
<h1 id="6.0"> 6.0 Change Log </h1>
235+
<h1 id="6.0"> 6.0 Change Log </h1>
229236

230237

231238
### 19/08/2021

nginx.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
server {
2-
listen $PORT;
2+
# Use below settings for depolying application on Heroku
3+
# listen $PORT;
4+
listen 8080;
35
location / {
46
root /usr/share/nginx/html;
57
index index.html index.htm;

public/favicon.ico

99.4 KB
Binary file not shown.

src/components/navigationBar/navigationBar.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ const nav = {
3939
problem: '/problem',
4040
vfg: '/vfg',
4141
manual: 'https://planimation.github.io/documentation/ ',
42-
demo: 'https://www.youtube.com/watch?v=Cj2rWdt1YQU',
42+
demo: 'https://github.com/planimation/documentation/tree/master/AnimationProfiles',
4343
home: '/'
4444
};
4545

4646
function NavigationBar() {
4747
const [ url , setUrl ] = useState();
4848
const history = useHistory();
4949
const classes = useStyles();
50-
50+
5151
const handleClick = (url) => {
5252
setUrl(url);
5353
if(url==='manual'){
@@ -75,10 +75,10 @@ function NavigationBar() {
7575
VFG
7676
</Link>
7777
<Link variant="button" color="inherit" className={classes.link}>
78-
<a href={'https://planimation.github.io/documentation/'} target='_blank' rel="noreferrer" className={classes.alink}>User Manual</a>
78+
<a href={nav.manual} target='_blank' rel="noreferrer" className={classes.alink}>User Manual</a>
7979
</Link>
80-
<Link variant="button" color="inherit" onClick={()=>handleClick('demo')} className={classes.link}>
81-
<a href={'https://www.youtube.com/watch?v=Cj2rWdt1YQU'} target='_blank' rel="noreferrer" className={classes.alink}>Demo</a>
80+
<Link variant="button" color="inherit" className={classes.link}>
81+
<a href={nav.demo} target='_blank' rel="noreferrer" className={classes.alink}>Demo</a>
8282
</Link>
8383
</nav>
8484
<Button color="inherit" variant="outlined"onClick={()=>handleClick('home')} className={classes.link} >
@@ -88,4 +88,4 @@ function NavigationBar() {
8888
</AppBar>);
8989
}
9090

91-
export default NavigationBar;
91+
export default NavigationBar;

src/pages/HomePage/home.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default function Home() {
102102
window.open('https://planimation.github.io/documentation/')
103103
break;
104104
case 4:
105-
window.open('https://www.youtube.com/watch?v=Cj2rWdt1YQU')
105+
window.open('https://github.com/planimation/documentation/tree/master/AnimationProfiles')
106106
break;
107107
default: return;
108108
}

0 commit comments

Comments
 (0)