-
Notifications
You must be signed in to change notification settings - Fork 1
Test CMS Changes
W. Bomar edited this page Apr 6, 2021
·
22 revisions
- Have an existing Core-CMS.
- (If docker containers are running) Stop (i.e. bring
down
) the docker containers. - Checkout relevant branch.
- Run command
npm run build
. - Start (i.e. bring
up
) the docker containers.
Warning: These steps have not been thoroughly verified.
- Have an existing Core-CMS.
- (If docker containers are running) Stop (i.e. bring
down
) the docker containers. - Checkout relevant branch.
- Delete
/static
directory. - Delete local
build
directories:rm -rf taccsite_cms/static/*/css/build
rm -rf taccsite_custom/*/static/*/css/build
- In the relevant
docker-compose
config file, update theservices
:cms
:image
value to a provided docker image tag. -
Rebuild the
cms
docker container without cache:-
docker-compose
(-f docker-compose.custom.yml
)build --no-cache cms
-
docker-compose
(-f docker-compose.custom.yml
)up --force-recreate --no-deps -d cms
- Start (i.e. bring
up
), stop (i.e. bringdown
), then re-start (i.e. bringup
) the docker containers.¹
-
- Start (i.e. bring
up
) the docker containers. - In the CMS container, run
python manage.py collectstatic --no-input
.
¹ The first start may hit a database contact error,
Name or service not known
. The second start should not.
Warning: These steps have not been thoroughly verified.
- Have an existing Core-Portal.
- (If docker containers are running) Stop (i.e. bring
down
) the dockers. - Checkout relevant branch.
- Delete
/server/cms/static
directory. - In the relevant
docker-compose
config file, update theservices
:cms
:image
value to a provided docker image tag. -
Rebuild the
cms
docker container without cache. - Start (i.e. bring
up
) the docker containers. - In the CMS container, run
python manage.py collectstatic --no-input
.
TACC ACI WMA Core-CMS Project Documentation