forked from JulienB18/src-ecs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (20 loc) · 731 Bytes
/
Copy pathMakefile
File metadata and controls
23 lines (20 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SHELL := /bin/bash
projectname = ecs
D = /data
CRON_DIR = $(D)/.cr_wk
www = $(D)/$(projectname)/www
console = php $(www)/bin/console
migration_dir = $(www)/migrations
# Be careful with this command (nfs / shared folder should be disabled)
clean_vagrant:
/bin/bash /tmp/cleaner.sh
# Mettre à jour notre base de donnée locale avec celles de l'externe
db_update_local:
$(console) doctrine:migrations:generate --db=remote -n
$(console) doctrine:migrations:migrate --db=default -n
rm -rf migrations/Version/*
# Mettre à jour la base de donnée externe avec nos datas
db_update_remote:
$(console) doctrine:migrations:generate --db=default -n
$(console) doctrine:migrations:migrate --db=remote -n
rm -rf migrations/Version/*