-
Notifications
You must be signed in to change notification settings - Fork 4
shell scripts
kenu edited this page Apr 15, 2024
·
3 revisions
cat deploy-youtb.sh
#!/bin/zsh
. ~/.zshrc
cd ~/git/youtb
git pull origin main
pnpm i
cd ~/git/youtb/web
pnpm i
pm2 restart youtb --update-env
sleep 2
pm2 list
curl -X POST -H 'Content-type: application/json' --data '{"content":"Deploy Finished!\nhttps://mp4.okdevtv.com/"}' $KENUWEBHOOK#!/bin/zsh
. ~/.zshrc
node ~/git/youtb/cron/cron-channel.js >> /tmp/channel.log
node ~/git/youtb/cron/cron-youtube.js >> /tmp/youtube.log
node ~/git/youtb/cron/cron-hourly.js >> /tmp/hourly.log
curl -X POST -H 'Content-type: application/json' --data '{"text":"Cron Job Finished!\nhttps://mp4.okdevtv.com/"}' $KENUSLACKWEBHOOK5 0,2,6-23 * * * /home/ec2-user/scripts/cron-youtube.sh >> /tmp/cronyou.log
https://mp4.okdevtv.com 사이트의 소스입니다.