Skip to content

Commit b6f101f

Browse files
committed
Added off-air to client
1 parent 6088a30 commit b6f101f

File tree

5 files changed

+26
-8
lines changed

5 files changed

+26
-8
lines changed

README.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,24 @@ Build the image
2222

2323
`docker build -t "omni-img" .`
2424

25-
Run the image
25+
Run the image (dev)
2626

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`
2832

2933
Debug the image
3034

3135
`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)

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
"version": "1.0.0",
44
"description": "Omnipresent presentations",
55
"scripts": {
6-
"build": "run-s build:core build:client build:producer build:slides",
6+
"build:apps": "run-s build:client build:producer build:slides",
77
"build:core": "npm --prefix ./packages/core run build",
88
"build:client": "npm --prefix ./packages/client run build",
99
"build:producer": "npm --prefix ./packages/producer run build",
1010
"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",
1114
"test": "echo \"Error: no test specified\" && exit 1"
1215
},
1316
"author": "Paul Shannon",
37.9 KB
Loading

packages/client/src/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111
<div id="dojo"></div>
1212
<a-scene>
1313
<a-assets>
14+
<img id="offair-img" src="./assets/off-air.jpg" />
1415
<video id="vrscreen" playsinline></video>
1516
</a-assets>
1617
<a-sky color="#191a47"></a-sky>
1718
<a-entity camera look-controls position="0 1.6 0">
1819
<a-text id="txt" value="" position="0 0 -1" scale="0.4 0.4 0.4" align="center" color="#FFF"></a-text>
1920
</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>
2122
<a-entity id="leftControl" laser-controls="hand: left"></a-entity>
2223
<a-entity id="rightControl" laser-controls="hand: right"></a-entity>
2324
<a-sphere id="leftPresenter" scale="0.2 0.2 0.2" color="red"></a-sphere>

packages/server/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"author": "Paul Shannon",
1212
"license": "MPL-2.0",
1313
"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"
1517
},
1618
"devDependencies": {
1719
"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"
2121
}
2222
}

0 commit comments

Comments
 (0)