-
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 build --no-cache cms
(beware of-f
)¹ -
docker-compose up --force-recreate --no-deps -d cms
(beware of-f
)¹ - 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
.
Footnotes
- Do NOT use
-f docker-compose.dev.yml
(nordocker-compose.custom.yml
based ondocker-compose.dev.yml
), because the- .:/code
entry forvolumes
will overwrite the Docker's freshly, internally builtbuild
directories (with the emptied directories in step 5). - 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