mirror of
https://github.com/stackbuilders/hapistrano.git
synced 2024-11-30 13:43:36 +03:00
Create cache repo path if it doesn't exist
This commit is contained in:
parent
148c485c68
commit
a7e2e9a064
@ -91,8 +91,12 @@ defaultSuccessHandler _ = putStrLn "Deploy completed successfully."
|
||||
-- system.
|
||||
setupDirs :: RC (Maybe String)
|
||||
setupDirs = do
|
||||
pathName <- use $ config . deployPath
|
||||
remoteCommand $ "mkdir -p " ++ joinPath [pathName, "releases"]
|
||||
conf <- use config
|
||||
|
||||
remoteCommand $ intercalate " && "
|
||||
[ "mkdir -p " ++ releasesPath conf
|
||||
, "mkdir -p " ++ cacheRepoPath conf
|
||||
]
|
||||
|
||||
remoteCommand :: String -- ^ The command to run remotely
|
||||
-> RC (Maybe String)
|
||||
|
Loading…
Reference in New Issue
Block a user