markfinger / python-react

Server-side rendering of React components
MIT License
1.62k stars 116 forks source link

Cannot log from react #38

Closed fellu closed 9 years ago

fellu commented 9 years ago

Hi,

using python-react with js-host, how can I log from react that being rendred in backend. Also using Django. Trying with console.log but nothing appears.

JS_HOST = { 'USE_MANAGER': DEBUG, 'VERBOSITY': 600 } REACT = { 'DEVTOOL': 'eval' if DEBUG else None, }

markfinger commented 9 years ago

I assume that js-host is running under a manager. The easiest way is to spin up the manager manually, so you'll get all the terminal output. Refer to https://github.com/markfinger/js-host#cli-usage

It boils down to

node_modules/.bin/js-host host.config.js
markfinger commented 9 years ago

Correction: ... easiest way is to spin up the manager host manually...