6. Compile Assets & Restart edX Applications
The Open edX developer team created a defined process to sweep up and organize all static assets in the LMS and CMS, generically referred to as, “Compiling Assets”. Any time you add or modify either of these two applications you’ll need to run this process again. Otherwise you’re prone to getting some really quirky behavior in the UI. In the worst of cases the app will fail to start, leaving you with a stoic photo image of a sinking ship – yikes.
Following are the operating system commands to manually compile assets for both the LMS and CMS:
sudo -H -u edxapp bash
paver update_assets cms --settings=aws
paver update_assets lms --settings=aws
Note: this process takes up to 15 minutes to complete during which time the LMS and CMS will be unavailable to end user.
After this process finishes you should restart the two applications using these commands, and noting that the “:” symbols are intentional and should be included the commands:
/edx/bin/supervisorctl restart edxapp:
/edx/bin/supervisorctl restart edxapp_worker: