- Giải nén thư mục tool trên VPS - Ubuntu >20.04
cd
vào thư mục tool- Chạy
bash install.sh
- Cài MongoDB -
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
- Cài settings trong file
.env
- Sau khi cài xong chạy
bash init.sh
để start tool - Chạy
node push.js
. Đợi 5s rồiCtrl-C
- Bắt đầu upload
/api/drive/{action}/{file_id}
create
: tạo fileget
: get thông tin fileretry
: retry nếu file lỗidelete
: xoá file
/api/stat/{action}
videos
: số video đã xong, đang xử lí, đã hoàn thànhdone
: list video đã hoàn thành (max 100 vid mới nhất)errors
: toàn bộ video lỗiprocessing
: toàn bộ video đang xử lí