Search code examples
rakecanvas-lms

Non-interactive Rake task "db:initial_setup"


I'm trying to automate the installation of canvas LMS which requires the execution of

bundle exec rake db:initial_setup

which asks for an admin email and password interactively

How do I pass those values in a non-interactive way?


Solution

  • It should be done by setting the following environmental variables :

    CANVAS_LMS_ADMIN_EMAIL

    CANVAS_LMS_ADMIN_PASSWORD

    CANVAS_LMS_STATS_COLLECTION

    CANVAS_LMS_ACCOUNT_NAME