-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbashrc
More file actions
24 lines (18 loc) · 733 Bytes
/
bashrc
File metadata and controls
24 lines (18 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#bin/bash
export PATH="/home/fossbadge/.local/bin:$PATH"
alias collect="uv run python3 manage.py collectstatic --noinput"
alias rsp="uv run python3 manage.py runserver 0.0.0.0:8000"
alias sp="uv run python3 manage.py shell_plus"
alias guni="uv run gunicorn fedowallet_django.wsgi --log-level=debug --log-file /fedow/www/gunicorn.logs -w 3 -b 0.0.0.0:8000"
alias mm="uv run python3 migrate"
#alias pshell="eval $(uv env activate)"
load_sql() {
export PGPASSWORD=$POSTGRES_PASSWORD
export PGUSER=$POSTGRES_USER
export PGHOST=$POSTGRES_HOST
psql --dbname $POSTGRES_DB -f $1
echo "SQL file loaded : $1"
}
alias venv="source .venv/bin/activate"
alias popdb="uv run manage.py populate_db --img"
alias dshell="uv run manage.py shell"