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