Giter VIP home page Giter VIP logo

Comments (6)

julie-ng avatar julie-ng commented on July 22, 2024

I just dug deeper and found that the .git directory inside in my build folder is unique to middleman-deploy:

julieng@air in build on gh-pages*
$ git lp
7d74217  (HEAD, origin/gh-pages, gh-pages) Automated commit at 2013-05-26 22:52:40 UTC by middleman-deploy 3.0.13 (11 hours ago)
6baacaa  Automated commit at 2013-05-24 16:08:03 UTC by middleman-deploy 3.0.13 (3 days ago)
6aeab5d  Automated commit at 2013-05-24 15:53:29 UTC by middleman-deploy 3.0.13 (3 days ago)
94f7711  Automated commit at 2013-05-24 15:51:39 UTC by middleman-deploy 3.0.13 (3 days ago)
eee09ea  (master) Automated commit at 2013-05-24 15:51:08 UTC by middleman-deploy 3.0.13 (3 days ago)

If middleman-deploy is creating this git directory, it should know to ignore it too, correct?

N.B. lp is a shortcut to a custom git log pretty format

from middleman-deploy.

tvaughan avatar tvaughan commented on July 22, 2024

You switched from the git deploy method to ftp, right? The .git directory is created (and ignored) by the git deploy method. We don't have a built-in concept of switching between deploy methods. Provided you no longer wish to use the git deploy method you can safely delete that .git directory. Does that work for you?

from middleman-deploy.

julie-ng avatar julie-ng commented on July 22, 2024

Yes, removing it does work. But does the git deploy method require a git repo (in case I were to switch back)?

I initially deployed to github (just a site preview for a client) but the normal middleman app doesn't properly do relative links for me so I switched to FTP.

Also, would it be possible just to adjust your Regex to exclude the .git directory? Then it wouldn't be an issue…

from middleman-deploy.

tvaughan avatar tvaughan commented on July 22, 2024

A list of patterns to exclude seems like a reasonable idea. But is that how people use middleman? Do they really have things in build that they don't want deployed? I'm curious. I have no idea.

Did you try middleman build --clean? Would that also be a solution?

Thanks.

from middleman-deploy.

komor72 avatar komor72 commented on July 22, 2024

I'm digging it out because I noticed that middleman-deploy still uploads dot-files (such as .DS_Store), according to my console log and inspection of the remote FTP directory. Would it be possible to use Middleman’s built-in IGNORE_LIST array to exclude files from deployment? I found this const in the middleman/middleman-core/lib/middleman-core/core_extensions/file_watcher.rb file. Unfortunately my programming skills don’t allow me to propose a patch.

from middleman-deploy.

tvaughan avatar tvaughan commented on July 22, 2024

I don't know. I suspect someone may want to deploy a file called vendor or Gemfile? https://github.com/middleman/middleman/blob/v3-stable/middleman-core/lib/middleman-core/core_extensions/file_watcher.rb#L8 Either way this will require someone to submit a patch. For anyone who may be watching this repo and would like to take over as maintainer, please let me know! Thanks.

from middleman-deploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.