chatGPT
openAI |
Get a WeChat robot based on ChatGPT in a few step
API - ChatGPT CLI and Python Wrapper
text-chat-davinci-002-20221122 Model
Node Version Manager – NVM Install Guide
whisper - github | whisper.cpp -github | whisper 模型下载 | download for whisper to ggml
执行Dockerfilei:
docker build -t chatapp .
执行指定文件:
docker build -t webapp -f ./docker/Dockerfile .
共享文件夹:
docker run -it -p9002:8088 -v ~/docker/hkcdBD/:/app/hkcdBD/ hkcdbd /bash
docker tag ubuntu webapp            #镜像改名
安装nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
nvm ls
nvm list available
nvm install stable
nvm install 14
nvm install 14.16.3
nvm install v14.16.3
nvm use v14.16.3
nvm use 14
nvm alias default 14.16.3
创建前端目录
npx @vue/cli create frontend
配置静态文件路径
#vim settings.py
STATICFILES_DIRS = [
    os.path.join(BASE_DIR, "frontend/dist/static"),
]
将frontend中的静态文件复制到project静态目录中
STATIC_ROOT = os.path.join(BASE_DIR, "static")
运行:
python manage.py collectstatic
cd dvue
. venv/bin/activate
deactivate
cd frontend
npm run build
sudo apachectl stop
sudo systemctl start nginx
. ./deploy/start.sh
. ./deploy/stop.sh
#清理日志
journalctl --vacuum-size=10M