Update email in conf
[recipes.git] / deploy.ps1
index bd50936..7b4b556 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)) {
@@ -16,9 +16,8 @@ if (!(Test-Path -Path $destination)) {
 }
 
 Copy-Item target/release/recipes -Destination $destination
-Copy-Item key.secret -Destination $destination
 
-Copy-Item static -Destination $destination -Recurse -Force
+Copy-Item backend/static -Destination $destination -Recurse -Force
 
 # Do not overwrite the configuration.
 if (!(Test-Path -Path $destination/conf.ron)) {