Comments (6)
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.
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.
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.
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.
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.
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)
- README: 'deploy_method' should be 'deploy' HOT 5
- Local changes would be overwritten by checkout
- CNAME gets blown out with force update HOT 4
- `block in initialize': undefined method `deploy_method=' for #<Middleman::Deploy
- Can't deploy to remote HOT 1
- Deploy build directory to github pages? HOT 7
- Git Force-Push Deploy Pushes Root Instead of Build Dir HOT 18
- undefined method "deploy_method" HOT 7
- Compatibility with Middleman 4.1.7 HOT 4
- Deploy path doesn't work for Git Deploy Method HOT 1
- Rsync: Configured username ignored HOT 4
- Forceful deploy cause long upload times
- deploy.user not being set HOT 1
- Error with Middleman 4.2 and middleman-deploy 1.0 HOT 16
- deploy.deploy_method has changed to method HOT 1
- How to deploy robots.txt file HOT 1
- Ubuntu 18.04 rsync method fails
- Support additional commands during deploy
- Feature Request: support a different trunk branch HOT 1
- Is this gem abandoned? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from middleman-deploy.