Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
anis
anis-server
Commits
995676e9
Commit
995676e9
authored
Jun 21, 2019
by
Tifenn Guillas
Browse files
Add remove-db
parent
7ed75d1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
995676e9
UID
:=
$(
shell
id
-u
)
GID
:=
$(
shell
id
-g
)
UID
:=
$
(
id
-u
)
GID
:=
$
(
id
-g
)
list
:
@
echo
""
...
...
@@ -15,6 +15,7 @@ list:
@
echo
" phpunit > run php unit test suite"
@
echo
" phpcs > run php code sniffer test suite"
@
echo
" init-db > generate a new metadata database (anis-v3-server containers running needed)"
@
echo
" remove-db > remove the metadata database"
@
echo
" validate-db > validate the doctrine mapping entity files (anis-v3-server containers running needed)"
@
echo
" add-superuser > add an Anis server superuser. Example: make email=admin@anis.fr password=admin add-superuser"
@
echo
" gen-key > generate a new encryption key that you can use to encrypt data (see anis server config file)"
...
...
@@ -58,6 +59,9 @@ phpcs:
init-db
:
@
docker-compose
exec
php sh ./conf-dev/metamodel_init.sh
remove-db
:
@
docker volume
rm
anis-server_pgdata
validate-db
:
@
docker-compose
exec
php ./vendor/bin/doctrine orm:validate-schema
...
...
Write
Preview
Supports
Markdown
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