Leave server-side rendering in a state where things can continue.
This commit is contained in:
parent
e6623effaf
commit
7dc1816906
|
@ -7,7 +7,7 @@ Main package for Rookeries.
|
||||||
|
|
||||||
from flask.ext import assets
|
from flask.ext import assets
|
||||||
# TODO: Enable server-side rendering with: https://github.com/nitely/python-react-v8
|
# TODO: Enable server-side rendering with: https://github.com/nitely/python-react-v8
|
||||||
# import react
|
import react
|
||||||
|
|
||||||
from rookeries import config, main, webapp
|
from rookeries import config, main, webapp
|
||||||
|
|
||||||
|
@ -22,11 +22,11 @@ def make_rookeries_app():
|
||||||
config.configure_web_app(web_app)
|
config.configure_web_app(web_app)
|
||||||
register_asset_bundles_with_app(web_app)
|
register_asset_bundles_with_app(web_app)
|
||||||
# TODO: Enable server-side rendering: see https://github.com/nitely/python-react-v8/tree/master/examples/flux/src
|
# TODO: Enable server-side rendering: see https://github.com/nitely/python-react-v8/tree/master/examples/flux/src
|
||||||
# react.set_up()
|
react.set_up()
|
||||||
|
# react.utils.load_libs(['./rookeries/static/scripts/rookeries-bundle.js'])
|
||||||
# react.utils.load_libs(['./client/index.js'])
|
# react.utils.load_libs(['./client/index.js'])
|
||||||
# react.utils.load_libs(['./client/dist/rookeries-server.js'])
|
# react.utils.load_libs(['./client/dist/rookeries-server.js'])
|
||||||
# react.utils.load_libs(['./client/dist/rookeries.js'])
|
# react.utils.load_libs(['./client/dist/rookeries.js']) # TODO: Re-enable once self.fetch resolved.
|
||||||
# react.utils.load_libs(['./rookeries/static/scripts/rookeries-bundle.js'])
|
|
||||||
return web_app
|
return web_app
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue