move to src for deploy
This commit is contained in:
13
deploy.ps1
Normal file
13
deploy.ps1
Normal file
@@ -0,0 +1,13 @@
|
||||
# Define variables
|
||||
$localFolder = "./src/."
|
||||
$remoteUser = "debian"
|
||||
$remoteHost = "robe.vincent-bouquet.fr"
|
||||
$remotePath = "/var/www/html/public/reap"
|
||||
$port = 22 # Change this if your SSH server uses a different port
|
||||
|
||||
# Build the SCP command
|
||||
$copyCommand = "scp -r -P ${port} `"${localFolder}`" ${remoteUser}@${remoteHost}:`"${remotePath}`""
|
||||
|
||||
# Execute the command
|
||||
Write-Host "Executing: $copyCommand"
|
||||
Invoke-Expression $copyCommand
|
||||
Reference in New Issue
Block a user