diff --git a/.github/workflows/deploy_server.yml b/.github/workflows/deploy_server.yml index a6b2594c..6d79fec5 100644 --- a/.github/workflows/deploy_server.yml +++ b/.github/workflows/deploy_server.yml @@ -86,7 +86,7 @@ jobs: git fetch --all git switch ${{ github.ref_name }} git pull - bash redeploy_update_server.sh -s '/home/jaam/ukraine_alarm_map' -sb '/home/jaam/ukraine_alarm_map' -m ${{ secrets.MEMCACHED_HOST }} + bash redeploy_update_server.sh -s '/home/jaam/ukraine_alarm_map/bin' -sb '/home/jaam/ukraine_alarm_map/bin_beta' -m ${{ secrets.MEMCACHED_HOST }} - name: Redeploy Web Server if: ${{ inputs.redeploy_web_server || inputs.redeploy_all }} uses: appleboy/ssh-action@v1.2.0 diff --git a/deploy/update_server/update_server.py b/deploy/update_server/update_server.py index 3e818cb9..1c95e61e 100644 --- a/deploy/update_server/update_server.py +++ b/deploy/update_server/update_server.py @@ -154,10 +154,7 @@ async def update_cache(): ] ) await mc.set(b"bins", json.dumps(filenames).encode("utf-8")) - logger.debug(f"Updated cache with {len(filenames)} bins") await mc.set(b"test_bins", json.dumps(beta_filenames).encode("utf-8")) - logger.debug(f"Updated cache with {len(beta_filenames)} test bins") - await asyncio.sleep(1000) app = Starlette(