Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hapistrano can't deploy from Windows #96

Closed
juanpaucar opened this issue May 31, 2018 · 1 comment
Closed

Hapistrano can't deploy from Windows #96

juanpaucar opened this issue May 31, 2018 · 1 comment

Comments

@juanpaucar
Copy link
Contributor

Expected Behavior
I want to deploy from Windows to a UNIX system using the same files I would use if I ran hapistrano from Linux.

Actual Behavior
I'm getting this error when deploying from Windows.

> hap deploy -c deploy/staging.yaml…Aeson exception:…Error in $['deploy_path']: InvalidAbsDir "/var/www/staging"…

Other details
Hapistrano uses the path library. path has support for windows. However, path makes a distinction to expose certain behavior according to the system it is being compiled on:

{-# LANGUAGE CPP #-}
#if defined(mingw32_HOST_OS)
module Path(module Path.Windows) where
import Path.Windows
#else
module Path(module Path.Posix) where
import Path.Posix
#endif

That means that if hapistrano is compiled on Windows, it will validate that all paths on the server.yml files have valid deployment paths. If the target is Unix, the path will still appear as invalid since path's validation relies on the system it was compiled on.

@CristhianMotoche
Copy link
Collaborator

I'm going to close this issue for now since it was labeled as wontfix. We can reopen it in the feature since no one else has requested to take a look at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants