-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathbashrc
More file actions
32 lines (23 loc) · 1.25 KB
/
bashrc
File metadata and controls
32 lines (23 loc) · 1.25 KB
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
28
29
30
31
32
# only for convenient :)
alias mm="poetry run python /DjangoFiles/manage.py migrate"
alias sp="poetry run python manage.py tenant_command shell_plus --print-sql"
alias rsp="poetry run python /DjangoFiles/manage.py runserver 0.0.0.0:8002 2>&1 | tee /DjangoFiles/runserver.log"
alias guni="poetry run python /DjangoFiles/manage.py collectstatic --no-input && poetry run gunicorn TiBillet.wsgi --capture-output --reload -w 3 -b 0.0.0.0:8002 2>&1 | tee /DjangoFiles/runserver.log"
alias cel="poetry run celery -A TiBillet worker -l INFO"
alias test="poetry run python /DjangoFiles/manage.py test"
alias mmes="poetry run python manage.py makemessages -l en && poetry run python manage.py makemessages -l fr"
alias cmes="poetry run python manage.py compilemessages"
alias pshell="eval $(poetry env activate)"
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
}