After you configure a partner and at least one site for the E-Commerce system to use, you must compile all static assets and move them to the correct location to be served. The edX E-Commerce service uses django-compressor and RequireJS to manage static assets.
The static file directories are set up so that
make static reads the
build output directory of
r.js before it checks for assets in the
ecommerce/static/ directory. EdX does not recommend that you run
static locally. If you run
make static or
r.js locally, make sure
you delete the
ecommerce/static/build folder or that you run
static before you continue with development. If you do not run
static again, django-compressor ignores all changes that you make to
To compile and move your static assets and deploy your E-Commerce service, execute the following command locally or on another server.
$ make static
If you create new pages that have RequireJS dependencies, remember to add your