Compare commits
2 Commits
0b8f06099a
...
116458feda
| Author | SHA1 | Date | |
|---|---|---|---|
| 116458feda | |||
| 238dec4050 |
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
|
||||
|
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 314 B |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |