Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
f21bc38e
Verified
Commit
f21bc38e
authored
3 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
[Docker] Clear caches on migrate
parent
7a607419
Branches
clear-cache-on-migrate
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!944
[Docker] Clear caches on migrate
Checking pipeline status
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.rst
+1
-0
1 addition, 0 deletions
CHANGELOG.rst
docker-startup.sh
+5
-1
5 additions, 1 deletion
docker-startup.sh
with
6 additions
and
1 deletion
CHANGELOG.rst
+
1
−
0
View file @
f21bc38e
...
...
@@ -13,6 +13,7 @@ Changed
~~~~~~~
* [Dev] The (undocumented) setting PDF_CONTEXT_PROCESSORS is now named NON_REQUEST_CONTEXT_PROCESSORS
* [Docker] Cache is now cleared if migrations are applied
`2.7.1`_ - 2022-01-28
---------------------
...
...
This diff is collapsed.
Click to expand it.
docker-startup.sh
+
5
−
1
View file @
f21bc38e
...
...
@@ -48,7 +48,11 @@ wait_database() {
prepare_database
()
{
# Migrate database; should only be run in app container or job
aleksis-admin migrate
&&
aleksis-admin createinitialrevisions
if
aleksis-admin migrate
--check
>
/dev/null 2>&1
;
then
aleksis-admin migrate
&&
\
aleksis-admin clear_cache
&&
\
aleksis-admin createinitialrevisions
fi
}
# Wait for database to be reachable under all conditions
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment