Remove references to catfish, and update aliases

So long, old friend
This commit is contained in:
Jake Howard 2020-06-15 12:11:25 +01:00
parent a50a8d5385
commit a314b1a27e
Signed by: jake
GPG Key ID: 57AFB45680EDD477
3 changed files with 2 additions and 31 deletions

View File

@ -1,23 +0,0 @@
#!/usr/bin/env bash
set -e
if [ "$1" == "shell" ]; then
ctpr manage.py shell
elif [ "$1" == "build" ]; then
ctpr build
elif [ "$1" == "test" ] || [ "$1" == "t" ]; then
ctpr runtests ${@:2}
elif [ "$1" == "run" ]; then
ctpr ${@:2}
elif [ "$1" == "manage" ] || [ "$1" == "manage.py" ]; then
ctpr manage.py ${@:2}
elif [ "$1" == "migrate" ]; then
ctpr manage.py migrate ${@:2}
elif [ "$1" == "makemigrations" ]; then
ctpr manage.py makemigrations ${@:2}
elif [ "$1" == "route" ]; then
ctf router ${PWD##*/}.ctf.sh --ident ${PWD##*/}:development:web
else
ctf project $@
fi

View File

@ -30,5 +30,5 @@ alias src="source {{ home }}/.zshrc && tmux source {{ home }}/.tmux.conf"
{% include "base.sh" %}
{% include "environment.sh" %}
{% include "applications.sh" %}
{% include "catfish.sh" %}
{% include "crab.sh" %}
{% include "javascript.sh" %}

View File

@ -1,11 +1,5 @@
alias ctpr="ctf project run --"
alias ctpt="NO_MIGRATIONS=true IN_TEST=true FILE_STORAGE='django.core.files.storage.FileSystemStorage' crab manage.py test $@ --keepdb"
alias ctfs="cd ~/catfish && ./start && cd - > /dev/null"
alias ctpt="NO_MIGRATIONS=true IN_TEST=true FILE_STORAGE='django.core.files.storage.FileSystemStorage' ctpr manage.py test $@ --keepdb"
export CATFISH_HOSTNAME_OVERRIDE=localhost
# Crab
export ENV_FILE=etc/environments/development/env,.env
export PROC_FILE=etc/environments/development/procfile
export BIN_DIRS=env/bin