-
npm run bundle
on the ReactVR project. It creates a new folder invr/build
. The exported files should be self-sufficient when uploaded to a web server. -
Copy static_assets folder
into thevr/build
directory. (Heroku errors on this, which is why it needs thestatic_asset
filenames in the index.html file). We may be able to resolve this by using a remote CDN to host thestatic_assets
, and passing in theassetRoot
argument toReactVR.init
. See the ReactVR deployment instructions here.
TODO: Write instructions or screencast here. This is a lot easier than Heroku.
TODO: Write instructions or screencast here. This is a lot easier than Heroku.
- Evans Wang's article on Deploying ReactVR to Heroku in minutes
- Kany's gist on deploying ReactVR to Heroku
-
The "deploy to Heroku" process is tedious, and requires a lot of manual work.
-
An example of tedious work is having to copy all the names of the static_assets one by one into index.html.
-
The Heroku deploy process relies on "tricking" Heroku into believe the ReactVR app is a
PHP app
-
Heroku forces HTTPS, which causes our site to break (coincap's API is HTTP-only). This could be solved by making Heroku default to a HTTP connection.
-
Spend 2 days writing up an automatic build script (e.g.
npm run bundle:heroku
) that will automate the heroku deploy process, that we can subsequently open source? -
Spend 1 day figuring out a deploy process to Amazon AWS (normal server) or Amazon S3 that is more in line with Facebook's deployment documentation.
-
This should be taken together with implementing other best practices on Bitcoin-VR, such as an automated testing framework (Continuous Integration), and automated deploy process.