-
Notifications
You must be signed in to change notification settings - Fork 4
/
bashrc
27 lines (21 loc) · 955 Bytes
/
bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# only for convenient :)
alias mm="poetry run python /DjangoFiles/manage.py migrate"
alias sp="poetry run python manage.py tenant_command shell_plus"
alias rsp="poetry run python /DjangoFiles/manage.py runserver 0.0.0.0:8002"
alias cel="poetry run celery -A TiBillet worker -l INFO"
alias test="poetry run python /DjangoFiles/manage.py test"
alias mmes="poetry run django-admin makemessages -l en && django-admin makemessages -l fr"
alias cmes="poetry run django-admin compilemessages"
tibinstall() {
poetry run python /DjangoFiles/manage.py collectstatic
poetry run python /DjangoFiles/manage.py migrate
poetry run python /DjangoFiles/manage.py create_public
echo "Création du super utilisateur :"
poetry run python /DjangoFiles/manage.py create_tenant_superuser -s public
}
load_sql() {
export PGPASSWORD=$POSTGRES_PASSWORD
export PGUSER=$POSTGRES_USER
export PGHOST=postgres
psql --dbname $POSTGRES_DB -f $1
}