diff --git a/scripts/deploy.rb b/scripts/deploy.rb index 7b3fea2..27d50a5 100755 --- a/scripts/deploy.rb +++ b/scripts/deploy.rb @@ -44,10 +44,18 @@ run(<<~CMD.gsub("\n", " ").strip) #{LOCAL_DIR}/tensors/ #{REMOTE}:#{REMOTE_DIR}/tensors/ CMD +puts "" +puts "==> Syncing pyproject.toml and uv.lock..." +run(%(rsync -av --rsync-path="sudo rsync" #{LOCAL_DIR}/pyproject.toml #{LOCAL_DIR}/uv.lock #{REMOTE}:#{REMOTE_DIR}/)) + puts "" puts "==> Fixing permissions..." ssh("sudo chown -R tensors:tensors #{REMOTE_DIR} && sudo chmod -R g+w #{REMOTE_DIR}") +puts "" +puts "==> Syncing dependencies with uv..." +ssh("cd #{REMOTE_DIR} && uv sync --extra server") + puts "" puts "==> Restarting tensors service..." ssh("sudo systemctl restart tensors")