File tree 5 files changed +26
-8
lines changed
5 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,24 @@ Build the image
22
22
23
23
` docker build -t "omni-img" . `
24
24
25
- Run the image
25
+ Run the image (dev)
26
26
27
- ` docker run -p :8888:3000 --name omni omni-img `
27
+ ` docker run --rm -p 8888:8888 --name omni omni-img `
28
+
29
+ Run the image (prod)
30
+
31
+ ` docker run -d --restart always --name omni -p 8888:8888 omni-img `
28
32
29
33
Debug the image
30
34
31
35
` docker exec -it omni /bin/bash `
36
+
37
+ Deploy Checklist
38
+
39
+ * npm install
40
+ * core: npm install
41
+ * core: npm run build
42
+ * apps: npm install
43
+ * apps: npm run build
44
+ * Docker: Build the image
45
+ * Docker: Run the image (production)
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"description" : " Omnipresent presentations" ,
5
5
"scripts" : {
6
- "build" : " run-s build:core build:client build:producer build:slides" ,
6
+ "build:apps " : " run-s build:client build:producer build:slides" ,
7
7
"build:core" : " npm --prefix ./packages/core run build" ,
8
8
"build:client" : " npm --prefix ./packages/client run build" ,
9
9
"build:producer" : " npm --prefix ./packages/producer run build" ,
10
10
"build:slides" : " npm --prefix ./packages/slides run build" ,
11
+ "install:apps" : " npm --prefix ./packages/core install && npm --prefix ./packages/client install && npm --prefix ./packages/producer install && npm --prefix ./packages/server install && npm --prefix ./packages/slides install" ,
12
+ "install:core" : " npm --prefix ./packages/core install" ,
13
+ "start" : " npm --prefix ./packages/server dev" ,
11
14
"test" : " echo \" Error: no test specified\" && exit 1"
12
15
},
13
16
"author" : " Paul Shannon" ,
Original file line number Diff line number Diff line change 11
11
< div id ="dojo "> </ div >
12
12
< a-scene >
13
13
< a-assets >
14
+ < img id ="offair-img " src ="./assets/off-air.jpg " />
14
15
< video id ="vrscreen " playsinline > </ video >
15
16
</ a-assets >
16
17
< a-sky color ="#191a47 "> </ a-sky >
17
18
< a-entity camera look-controls position ="0 1.6 0 ">
18
19
< a-text id ="txt " value ="" position ="0 0 -1 " scale ="0.4 0.4 0.4 " align ="center " color ="#FFF "> </ a-text >
19
20
</ a-entity >
20
- < a-plane position ="0 2 -1.10276 " geometry ="width: 1.8 " color =" #000000 "> </ a-plane >
21
+ < a-plane position ="0 2 -1.10276 " geometry ="width: 1.8 " material =" src: #offair-img;npot: true "> </ a-plane >
21
22
< a-entity id ="leftControl " laser-controls ="hand: left "> </ a-entity >
22
23
< a-entity id ="rightControl " laser-controls ="hand: right "> </ a-entity >
23
24
< a-sphere id ="leftPresenter " scale ="0.2 0.2 0.2 " color ="red "> </ a-sphere >
Original file line number Diff line number Diff line change 11
11
"author" : " Paul Shannon" ,
12
12
"license" : " MPL-2.0" ,
13
13
"dependencies" : {
14
- "webserv" : " ^1.3.0-beta.4"
14
+ "webserv" : " ^1.3.0-beta.4" ,
15
+ "ts-node" : " ^8.5.4" ,
16
+ "typescript" : " ^3.7.4"
15
17
},
16
18
"devDependencies" : {
17
19
"ngrok" : " ^3.2.5" ,
18
- "npm-run-all" : " ^4.1.5" ,
19
- "ts-node" : " ^8.5.4" ,
20
- "typescript" : " ^3.7.4"
20
+ "npm-run-all" : " ^4.1.5"
21
21
}
22
22
}
You can’t perform that action at this time.
0 commit comments