update init dev

This commit is contained in:
Daniel Tsvetkov 2020-05-02 22:28:37 +02:00
parent 96ada1266b
commit 417ab35d25
2 changed files with 11 additions and 1 deletions

View File

@ -1 +0,0 @@
git+https://gitlab.com/pisquared/oshipka

View File

@ -11,8 +11,11 @@ HELP="
Usage $0 [ bootstrap | worker | web | venv | install | link | cert ]
bootstrap [PROJECT_PATH] Create a new project in PROJECT_PATH
init Install dev env
worker Start worker
web Start webapp
venv Init venv
install Install requirements
link Link dev oshipka
@ -46,6 +49,12 @@ link_dev_oshipka() {
pip install -e ${TWW_PATH}
}
init() {
init_venv
install_reqs
link_dev_oshipka
}
install_cert() {
#[ ! -f /tmp/certbot-auto ] && wget -O /tmp/certbot-auto https://dl.eff.org/certbot-auto
#chmod +x /tmp/certbot-auto
@ -103,6 +112,8 @@ command_main() {
case "$INITIAL_COMMAND" in
bootstrap) bootstrap "$@"
;;
init) init "$@"
;;
worker) worker "$@"
;;
web) web "$@"