How to use environment variables?



  • Is it possible to have multiple environment-specific jsreport.config.json?

    How to configure this?

    Is there any way to have the correct config file based on the current environment?


  • administrators

    Is it possible to have multiple environment-specific jsreport.config.json?

    jsreport only reads one configuration file, but you can have multiple of these files if you want and to use a specific one depending on your environment you can start jsreport with the --configFile=<path-to-your-file> cli argument or an env var configFile with the path


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.