Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
allgo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
allgo
allgo
Commits
13e204ea
Commit
13e204ea
authored
5 years ago
by
BAIRE Anthony
Browse files
Options
Downloads
Patches
Plain Diff
add the container_migrate script
parent
7d8329e5
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!205
fixes for the qualif deployment
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
django/setup/files/dk/container_init
+0
-1
0 additions, 1 deletion
django/setup/files/dk/container_init
django/setup/files/dk/container_migrate
+16
-0
16 additions, 0 deletions
django/setup/files/dk/container_migrate
with
16 additions
and
1 deletion
django/setup/files/dk/container_init
+
0
−
1
View file @
13e204ea
...
...
@@ -27,7 +27,6 @@ fi
echo
"CREATE DATABASE allgo CHARACTER SET 'utf8';"
| mysql_cmd
# generate the missing migrations (in qualif/dev only)
# TODO: remove this when we deploy in production
if
[
"
$ENV
"
=
dev
]
||
[
"
$ENV
"
=
qualif
]
;
then
python3 manage.py makemigrations
fi
...
...
This diff is collapsed.
Click to expand it.
django/setup/files/dk/container_migrate
0 → 100755
+
16
−
0
View file @
13e204ea
#!/bin/sh
set
-e
-x
# wait until the mysql server is ready
wait-mysql
mkdir
-p
/vol/cache/allgo
# generate the missing migrations (in qualif/dev only)
if
[
"
$ENV
"
=
dev
]
||
[
"
$ENV
"
=
qualif
]
;
then
python3 manage.py makemigrations
fi
# create the tables (apply the migrations)
python3 manage.py migrate
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