- 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_assetsfolder 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 bundlecp vr/reactvrinit.js vr/build/reactvrinit.jscp vr/index.html vr/build/index.htmlcp 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!