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

Fails because of Windows path separator #2

Open
jensontech opened this issue Feb 16, 2015 · 6 comments
Open

Fails because of Windows path separator #2

jensontech opened this issue Feb 16, 2015 · 6 comments

Comments

@jensontech
Copy link

When I run this on Windows I get -
"Deploying ./resources/public/compiled_prod/ to ....
java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near...."
The path displayed has backslashes.
Can you change it so it It converts Windows paths to forward slashes?

@uday-rayala
Copy link
Contributor

I think the deploy location is something you give in the project.clj. We dont build any paths in the library.

Please make sure the :local-root parameter has paths compliant to windows.
:aws {:access-key ~(System/getenv "AWS_ACCESS_KEY")
:secret-key ~(System/getenv "AWS_SECRET_KEY")
:s3-static-deploy {:bucket "THE BUCKET YOU WANT TO DEPLOY TO"
:local-root "LOCAL DIRECTORY YOU WANT TO DEPLOY FROM"}}

If you are still facing the issue, please share your project.clj.

@arosequist
Copy link

I think this might be caused by an issue in s3-sync. Upgrading to 0.4.0 might resolve this.

@petergillardmoss
Copy link

I've upgraded s3-sync and published as 0.1.1-SNAPSHOT: https://clojars.org/lein-s3-static-deploy/versions/0.1.1-SNAPSHOT

Unfortunately I don't have access to a Windows box so I am unable to verify. Would you do the honours and then I shall publish 0.1.1.

Thanks

@arosequist
Copy link

0.1.1-SNAPSHOT is working for me on Win 7.

@jensontech
Copy link
Author

Thanks Anthony.

  I am a bit snowed under at the moment, but this is getting closer
  to the top of the list. I'm sure you know how it gets. Users'
  demands first.





  On 25/02/2015 4:24 PM, Anthony Rosequist wrote:


  0.1.1-SNAPSHOT is working for me on Win 7.
  —
    Reply to this email directly or view
      it on GitHub.

@jensontech
Copy link
Author

Hi Peter.

  I have finally had time to retest this. It works fine in Windows
  now.

  It doesn't deploy our static files (which we deploy to the same
  location). When I get time I will do a pull request.

  Thanks,
  jensontech





  On 24/02/2015 2:27 AM, Peter Gillard-Moss wrote:


  I've upgraded s3-sync and published as 0.1.1-SNAPSHOT: https://clojars.org/lein-s3-static-deploy/versions/0.1.1-SNAPSHOT
  Unfortunately I don't have access to a Windows box so I am
    unable to verify. Would you do the honours and then I shall
    publish 0.1.1.
  Thanks
  —
    Reply to this email directly or view
      it on GitHub.

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

No branches or pull requests

4 participants