Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

When generating PDF, I am getting a page with a permissions error and sign-in page.

Solution:

  •  Open the Ruby console in the Rx-Hub directory.

  • Run set RAILS_ENV=production

  • You can launch an interactive terminal by running bundle exec rails c in the application directory

  • Get the module_id of the module that you are generating the PDF.

  • In the Ruby console, run RxModuleComponent.find_by(module_id: "<the module id>").update_token

    • Example: RxModuleComponent.find_by(module_id: "rx_inventory").update_token

  • No labels