Переглянути джерело

[#1] chore: use git stash and clear to resolve deployment smudge conflicts

Lange François 3 тижнів тому
батько
коміт
dcb176a23f
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      scripts/deploy_to_server.py

+ 1 - 1
scripts/deploy_to_server.py

@@ -34,7 +34,7 @@ def deploy():
         ssh.connect(host, username=user, password=password, timeout=10)
         print("Connected successfully!")
         
-        command = "cd food_project && git reset --hard && rm -f git_version.txt git_id.txt && git pull && docker-compose up -d --build"
+        command = "cd food_project && git stash && rm -f git_version.txt git_id.txt && git pull && git stash clear && docker-compose up -d --build"
         print(f"Executing: {command}")
         
         stdin, stdout, stderr = ssh.exec_command(command)