on master help sign in
ob deploy init: Initialize a git repo
commita5c7e20cc0bd16f677a76e53c33f3df7253f0940 authorLuigy Leon <luigy@outlook.com> dateTue 8 May 2018, 14:32 (9 years ago) parentd11b590
1 file changed+2−1
lib/command/src/Obelisk/Command/Deploy.hs+2−1
lib/command/src/Obelisk/Command/Deploy.hs+2−1
@@ -12,7 +12,7 @@ import Obelisk.Command.Thunk
1212
1313deployInit :: ThunkPtr -> FilePath -> FilePath -> FilePath -> [String] -> IO ()
1414deployInit thunkPtr configDir deployDir sshKeyPath hostnames = do
15− createDirectory deployDir
15+ createDirectoryIfMissing True deployDir
1616 hasConfigDir <- doesDirectoryExist configDir
1717 when hasConfigDir $ do
1818 callProcess "cp"
@@ -27,4 +27,5 @@ deployInit thunkPtr configDir deployDir sshKeyPath hostnames = do
2727 createSymbolicLink target (deployDir </> "ssh_key")
2828 createThunk (deployDir </> "src") thunkPtr
2929 writeFile (deployDir </> "backend_hosts") $ unlines hostnames
30+ initGit deployDir
3031