Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
devstack
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
devstack
Commits
a57e010c
Commit
a57e010c
authored
Aug 14, 2017
by
Jeremy Bowman
Committed by
Jeremy Bowman
Aug 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PLAT-1661 Add static asset make targets
parent
0fca2088
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
Makefile
+14
-0
README.rst
+18
-0
No files found.
Makefile
View file @
a57e010c
...
...
@@ -91,6 +91,20 @@ lms-shell: ## Run a shell on the LMS container
studio-shell
:
##
Run a shell on the Studio container
docker
exec
-it
edx.devstack.studio env
TERM
=
$(TERM)
/edx/app/edxapp/devstack.sh open
%-static
:
##
Rebuild static assets for the specified service container
docker
exec
-t
edx.devstack.
$*
bash
-c
'source /edx/app/$*/$*_env && cd /edx/app/$*/$*/ && make static'
credentials-static
:
##
Rebuild static assets for the credentials container
docker
exec
-t
edx.devstack.credentials bash
-c
'make static'
lms-static
:
##
Rebuild static assets for the LMS container
docker
exec
-t
edx.devstack.lms bash
-c
'source /edx/app/edxapp/edxapp_env && cd /edx/app/edxapp/edx-platform/ && paver update_assets'
studio-static
:
##
Rebuild static assets for the Studio container
docker
exec
-t
edx.devstack.studio bash
-c
'source /edx/app/edxapp/edxapp_env && cd /edx/app/edxapp/edx-platform/ && paver update_assets'
static
:
| credentials-static discovery-static ecommerce-static lms-static studio-static
##
Rebuild static assets for all service containers
healthchecks
:
##
Run a curl against all services' healthcheck endpoints to make sure they are up. This will eventually be parameterized
./healthchecks.sh
...
...
README.rst
View file @
a57e010c
...
...
@@ -347,6 +347,24 @@ starts, you have a few options:
installed across stop/starts, modify ``docker-compose.yml`` as mentioned
above.
How do I rebuild static assets?
-------------------------------
Optimized static assets are built for all the edX services during
provisioning, but you may want to rebuild them for a particular service
after changing some files without re-provisioning the entire devstack. To
do this, run the make target for the appropriate service. For example:
.. code:: sh
make credentials-static
To rebuild static assets for all service containers:
.. code:: sh
make static
Switching branches
------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment