Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
c3f449a6
Commit
c3f449a6
authored
Nov 16, 2017
by
sim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gargantext setup: migrate database to latest version
parent
4529ff6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
Makefile
Makefile
+13
-5
mkenvs.sh
tools/mkenvs.sh
+0
-0
No files found.
Makefile
View file @
c3f449a6
.PHONY
:
gargantext
env
conf
.PHONY
:
gargantext
venv envs migrate
conf
ifeq
($(TARGET),
"prod"
)
TARG
=
prod
...
...
@@ -12,17 +12,25 @@ VENV=$(shell pipenv --venv)
PYTHON
=
$(
shell
pipenv
--py
)
PY_VERSION
=
$(
shell
$(PYTHON)
-c
'import sys; v=sys.version_info; print("{0}.{1}".format(*v
))
'
)
gargantext
:
conf env
@
echo
"• Installing dependencies..."
gargantext
:
venv migrate conf
venv
:
envs
@
echo
"• Setup virtualenv with all dependencies..."
pipenv
install
$(PIPENV_ARGS)
@
# Put current directory in python path to be able to import gargantext
@
# from scripts in sub-directories
(
eg. alembic revisions
)
@
pwd
>
$(VENV)
/lib/python
$(PY_VERSION)
/site-packages/gargantext.pth
@
echo
env
:
env
s
:
@
echo
"• Setup django settings module and configuration path..."
./tools/mkenv.sh
./tools/mkenvs.sh
@
echo
migrate
:
@
echo
"• Migrate database to latest version..."
pipenv run ./manage.py migrate
pipenv run alembic upgrade
head
@
echo
conf
:
...
...
tools/mkenv.sh
→
tools/mkenv
s
.sh
View file @
c3f449a6
File moved
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