Keep the deployment target in a text file
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
|||||||
/var/
|
/var/
|
||||||
/dist-newstyle/
|
/dist-newstyle/
|
||||||
/dist/
|
/dist/
|
||||||
|
/deployment.txt
|
||||||
|
@@ -87,12 +87,15 @@ configuration = Configuration
|
|||||||
, previewSettings = Static.defaultFileServerSettings
|
, previewSettings = Static.defaultFileServerSettings
|
||||||
}
|
}
|
||||||
where
|
where
|
||||||
deploySite' Configuration{..} = rawSystem deployCommand
|
deploySite' deploymentConfiguration
|
||||||
|
= readFile "deployment.txt"
|
||||||
|
>>= executeDeployment deploymentConfiguration
|
||||||
|
executeDeployment Configuration{..} deploymentTarget = rawSystem deployCommand
|
||||||
[ "-ave"
|
[ "-ave"
|
||||||
, "ssh"
|
, "ssh"
|
||||||
, "--delete"
|
, "--delete"
|
||||||
, addTrailingPathSeparator destinationDirectory
|
, addTrailingPathSeparator destinationDirectory
|
||||||
, "caraus.de:/srv/httpd/belka/flevum/"
|
, deploymentTarget
|
||||||
]
|
]
|
||||||
|
|
||||||
--
|
--
|
||||||
|
Reference in New Issue
Block a user