From 417ab35d255475b2293750bb604e1f5873de621f Mon Sep 17 00:00:00 2001 From: Daniel Tsvetkov Date: Sat, 2 May 2020 22:28:37 +0200 Subject: [PATCH] update init dev --- bootstrap/requirements.txt | 1 - oshipka.sh | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/bootstrap/requirements.txt b/bootstrap/requirements.txt index f028d96..e69de29 100644 --- a/bootstrap/requirements.txt +++ b/bootstrap/requirements.txt @@ -1 +0,0 @@ -git+https://gitlab.com/pisquared/oshipka \ No newline at end of file diff --git a/oshipka.sh b/oshipka.sh index 6bc8512..f3591e3 100755 --- a/oshipka.sh +++ b/oshipka.sh @@ -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 "$@"