Commit Graph

13 Commits

Author SHA1 Message Date
Mark Karpov
e4790b3619 Implement concurrent multihost deployment (#60)
* Implement concurrent multi-host deployment
* Fix a couple of typos/obsolete info in ‘CHANGELOG.md’
2017-03-02 00:40:08 +04:00
mrkkrp
01a30ee43d Ensure that target directories for ‘scp’ actually exist
This is necessary because ‘scp’ has fewer options than normal ‘cp’ and so it
lacks flags that would prevent failing because of missing target location.
We add there these commands to ensure that copying of files always succeeds.
2017-02-21 19:45:56 +03:00
mrkkrp
ca396d19eb Restart command should be run after release activation 2017-02-21 19:44:54 +03:00
Mark Karpov
d791dd164e Add support for copying files and directories (#58) 2017-02-20 19:09:21 +04:00
Mark Karpov
e8b1d7a8d9 Use ‘hap.yaml’ to store configuration (#57) 2017-02-20 18:33:12 +04:00
Mark Karpov
7727061493 Add verification before rollbacks (#53) 2017-02-08 20:16:53 +04:00
Mark Karpov
72a1b75e70 Refactor/rewrite all the code (#52)
* Refactor/rewrite all the code

The change prepares solid ground for further improvements. This also fixes
at least two bugs:

* Proper support for empty lines and comments in build scripts.

* Previously switching to new releases was not atomic despite messing with
  symlinks. This is because it deleted the current link before creating the
  new one, but it should have created a new link and then use ‘mv’ to
  replace the old one atomically. The code has been changed to work properly
  now.

* Refresh the test suite as well

* Fix the build for older GHCs

* Use subshell for ‘cd’ commands
2017-02-06 19:04:00 +04:00
Mark Karpov
d66bb9b0db Use a different Travis script plus more (#51)
We should test with Cabal, not stack, because it allows to test in more
adverse environment, test with GHC versions that are not yet in snapshorts,
and generally improve compatibility.

This script tests with Cabal 1.24, as it's compatible with all GHC versions
of interest and has a better dependency resolution algorithm that allows to
avoid some problems with builds.

I also would like to impose 100% Haddock coverage here.
2017-01-29 18:25:02 +04:00
Cristhian Motoche
c6dd1bc640 Parse env variable PORT (#39) 2017-01-28 17:43:45 +04:00
Cristhian Motoche
64dd271aa5 Add optparse-applicative for parsing args (#46) 2017-01-28 17:05:37 +04:00
Juan Pedro Villa Isaza
e5b2a83cb2 Handle missing environment variables 2015-09-24 18:01:25 -05:00
Juan Pedro Villa Isaza
d4c623b45a Handle command line options with GetOpt (Close #33) 2015-09-24 16:18:00 -05:00
Juan Pedro Villa Isaza
c6fb4becfc Clean up (Cabal) package 2015-09-09 14:05:20 -05:00