video translate bot
Setup
# nvm install 18 && nvm use
# or
volta install node@18 # should be automatically pin
which node
node --version
which pnpm
corepack enable pnpm@8.3.1
pnpm --version
pnpm install
Start
git pull
# make sure right owner are set correctly after
sudo chown -R pi:pi .
# make sure run.sh script is executable
chmod +x ./run.sh
# git update-index --chmod=+x ./run.sh
# don't use sudo, because root mode will break some docker-push/yc/aws stuff
# NOTE: without sudo docker user crontab stuff sometimes crashes...
./run.sh docker:build
./run.sh docker:up
Deploy
sudo bash ./run.sh docker:build
sudo bash ./run.sh docker:up
sudo bash ./run.sh docker:restart
cli
url='https://youtu.be/x8J3a5ty3zw' pnpm cli