How to run jsreport in production mode
By default, jsreport runs in development mode. How can i run it in production mode
hi! are you running jsreport from node.js?
just set the
NODE_ENVenv var to
example in windows:
set NODE_ENV=production node server.js
NODE_ENV=production node server.js
how can i set prod config as default config rather than setting up env variable
This is not possible, jsreport loads the config based on the env variable.
However we want to improve this topic very soon, you can join here and add your cents.
Forgot to mention you can use your own config file like this when changing
var jsreport = require('jsreport')(fs.readFileSync('myconfig.json')) jsreport.init()