update init dev
This commit is contained in:
parent
96ada1266b
commit
417ab35d25
@ -1 +0,0 @@
|
|||||||
git+https://gitlab.com/pisquared/oshipka
|
|
11
oshipka.sh
11
oshipka.sh
@ -11,8 +11,11 @@ HELP="
|
|||||||
Usage $0 [ bootstrap | worker | web | venv | install | link | cert ]
|
Usage $0 [ bootstrap | worker | web | venv | install | link | cert ]
|
||||||
|
|
||||||
bootstrap [PROJECT_PATH] Create a new project in PROJECT_PATH
|
bootstrap [PROJECT_PATH] Create a new project in PROJECT_PATH
|
||||||
|
init Install dev env
|
||||||
|
|
||||||
worker Start worker
|
worker Start worker
|
||||||
web Start webapp
|
web Start webapp
|
||||||
|
|
||||||
venv Init venv
|
venv Init venv
|
||||||
install Install requirements
|
install Install requirements
|
||||||
link Link dev oshipka
|
link Link dev oshipka
|
||||||
@ -46,6 +49,12 @@ link_dev_oshipka() {
|
|||||||
pip install -e ${TWW_PATH}
|
pip install -e ${TWW_PATH}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
init() {
|
||||||
|
init_venv
|
||||||
|
install_reqs
|
||||||
|
link_dev_oshipka
|
||||||
|
}
|
||||||
|
|
||||||
install_cert() {
|
install_cert() {
|
||||||
#[ ! -f /tmp/certbot-auto ] && wget -O /tmp/certbot-auto https://dl.eff.org/certbot-auto
|
#[ ! -f /tmp/certbot-auto ] && wget -O /tmp/certbot-auto https://dl.eff.org/certbot-auto
|
||||||
#chmod +x /tmp/certbot-auto
|
#chmod +x /tmp/certbot-auto
|
||||||
@ -103,6 +112,8 @@ command_main() {
|
|||||||
case "$INITIAL_COMMAND" in
|
case "$INITIAL_COMMAND" in
|
||||||
bootstrap) bootstrap "$@"
|
bootstrap) bootstrap "$@"
|
||||||
;;
|
;;
|
||||||
|
init) init "$@"
|
||||||
|
;;
|
||||||
worker) worker "$@"
|
worker) worker "$@"
|
||||||
;;
|
;;
|
||||||
web) web "$@"
|
web) web "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user