Procházet zdrojové kódy

[#1] chore: reset git head before pulling in deployment script

Lange François před 3 týdny
rodič
revize
bed51d044e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 && rm -f git_version.txt git_id.txt && git pull && docker-compose up -d --build"
+        command = "cd food_project && git reset --hard && rm -f git_version.txt git_id.txt && git pull && docker-compose up -d --build"
         print(f"Executing: {command}")
         
         stdin, stdout, stderr = ssh.exec_command(command)