Move the deploy script.
This commit is contained in:
parent
b2385815a1
commit
d64d0bceb8
1 changed files with 3 additions and 2 deletions
|
|
@ -15,13 +15,14 @@ if (!(Test-Path -Path $destination)) {
|
|||
New-Item -ItemType directory -Path $destination
|
||||
}
|
||||
|
||||
strip target/release/recipes
|
||||
Copy-Item target/release/recipes -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)) {
|
||||
Copy-Item conf.ron -Destination $destination
|
||||
Copy-Item backend/conf.ron -Destination $destination
|
||||
}
|
||||
|
||||
systemctl --user start www-recipes.service
|
||||
Loading…
Add table
Add a link
Reference in a new issue