Copyright | © 2015-2017 Stack Builders |
---|---|
License | MIT |
Maintainer | Justin Leitgeb <justin@stackbuilders.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
A module for creating reliable deploy processes for Haskell applications.
- pushRelease :: Task -> Hapistrano Release
- registerReleaseAsComplete :: Path Abs Dir -> Release -> Hapistrano ()
- activateRelease :: Path Abs Dir -> Release -> Hapistrano ()
- rollback :: Path Abs Dir -> Natural -> Hapistrano ()
- dropOldReleases :: Path Abs Dir -> Natural -> Hapistrano ()
- playScript :: Path Abs Dir -> Release -> [GenericCommand] -> Hapistrano ()
- releasePath :: Path Abs Dir -> Release -> Hapistrano (Path Abs Dir)
- currentSymlinkPath :: Path Abs Dir -> Path Abs File
- tempSymlinkPath :: Path Abs Dir -> Path Abs File
- ctokenPath :: Path Abs Dir -> Release -> Hapistrano (Path Abs File)
Documentation
pushRelease :: Task -> Hapistrano Release Source #
Perform basic setup for a project, making sure necessary directories exist and pushing a new release directory with the SHA1 or branch specified in the configuration. Return identifier of the pushed release.
registerReleaseAsComplete Source #
:: Path Abs Dir | Deploy path |
-> Release | Release identifier to activate |
-> Hapistrano () |
Create a file-token that will tell rollback function that this release should be considered successfully compiled/completed.
:: Path Abs Dir | Deploy path |
-> Release | Release identifier to activate |
-> Hapistrano () |
Switch the current symlink to point to the specified release. May be used in deploy or rollback cases.
:: Path Abs Dir | Deploy path |
-> Natural | How many releases back to go, 0 re-activates current |
-> Hapistrano () |
Activates one of already deployed releases.
:: Path Abs Dir | Deploy path |
-> Natural | How many releases to keep |
-> Hapistrano () | Deleted Releases |
Remove older releases to avoid filling up the target host filesystem.
:: Path Abs Dir | Deploy path |
-> Release | Release identifier |
-> [GenericCommand] | Commands to execute |
-> Hapistrano () |
Play the given script switching to diroctory of given release.
Path helpers
Construct path to a particular Release
.
Get full path to current symlink.