加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
start_osx.sh 961 Bytes
一键复制 编辑 原始数据 按行查看 历史
Bram Wiepjes 提交于 2021-01-24 14:53 . Resolve "Real time collaboration"
#!/bin/bash
tabname() {
printf "\e]1;$1\a"
}
new_tab() {
TAB_NAME=$1
COMMAND=$2
CONTAINER_COMMAND=$3
osascript \
-e "tell application \"Terminal\"" \
-e "tell application \"System Events\" to keystroke \"t\" using {command down}" \
-e "do script \"printf '\\\e]1;$TAB_NAME\\\a'; $COMMAND\" in front window" \
-e "do script \"$CONTAINER_COMMAND\" in front window" \
-e "end tell" > /dev/null
}
docker-compose up -d
new_tab "Backend" \
"docker exec -it backend bash" \
"python src/baserow/manage.py runserver 0.0.0.0:8000"
new_tab "Backend" \
"docker exec -it backend bash" \
"watchmedo auto-restart --directory=./ --pattern=*.py --recursive -- celery -A baserow worker -l INFO"
new_tab "Web frontend" \
"docker exec -it web-frontend bash" \
"yarn run dev"
new_tab "Web frontend eslint" \
"docker exec -it web-frontend bash" \
"yarn run eslint --fix"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化