- Read Facebook's React VR deployment guide.
- Copy the list of static assets files in
reactvrinit.js
. (TODO: write automated script to handle this)
ReactVR.init(
// When you're ready to deploy your app, update this line to point to
// your compiled index.bundle.js
'./index.bundle.js?platform=vr',
// Attach it to the body tag
document.body,
{},
[ './static_assets/Air_Balloon.mtl',
'./static_assets/Air_Balloon.obj',
'./static_assets/lake-medium.jpg',
'./static_assets/lake-large.jpg',
'./static_assets/Low-Poly_airship.mtl',
'./static_assets/Low-Poly_airship.obj',
]
);
- Copy
static_assets
folder intovr/build/static_assets
Note that the vr/build
folder already has a git repository, with origin/master
set to the bitcoin-vr.github.io
. Pushing to origin/master
will trigger the github pages to rebuild.
npm run bundle
cp vr/reactvrinit.js vr/build/reactvrinit.js
cp vr/index.html vr/build/index.html
cp vr/styles.css vr/styles.css
After copying everything over, look up the references in each file and make sure they are rationalized. The folder structure in development is likely to be quite different from the vr/build
setup!