Improve the order of the deploy process
[recipes.git] / deploy.ps1
index 5ef2355..e066f1d 100644 (file)
@@ -4,11 +4,11 @@ if ($args.Count -lt 1) {
    exit 1
 }
 
-systemctl --user stop www-recipes.service
-
 git pull
 cargo build --release
 
+systemctl --user stop www-recipes.service
+
 $destination=$args[0]
 
 if (!(Test-Path -Path $destination)) {