backend / start.sh
RohanVashisht's picture
Create start.sh
c18b745 verified
Raw
History Blame Contribute Delete
329 Bytes
#!/bin/sh
update_db() {
while true; do
echo "Updating database..."
wget -O /workplace/zigistry.db.new "https://huggingface.co/buckets/Zigistry/Zigistry/resolve/zigistry.db?download=true"
mv /workplace/zigistry.db.new /workplace/zigistry.db
sleep 3600
done
}
update_db &
exec ./server