scttnlsn / dandelion

Incremental Git repository deployment.
http://scttnlsn.github.io/dandelion
MIT License
738 stars 60 forks source link

Set the folder to deploy #21

Closed lucasmotta closed 11 years ago

lucasmotta commented 11 years ago

Hey there,

I would love to know if it's possible to set the folder/path that you want to upload. For example, I've this structure of folder:

.git
dandelion.yml
/frontend
   /deploy
   /source
/backend

So I just want to upload what's inside the frontend/deploy to my ftp, but the structure on my ftp is not the same, it's just the public_html folder.

Maybe if you could have a setting similar to the path, but where you would set the local folder to upload.

The dandelion would look like this:

# Required
scheme: ftp
host: ftp.example.com
username: user
password: pass

# Optional
folder: frontend/deploy
path: public_html

Is it possible? Or there's any other way around to do this?

RobertCordes commented 11 years ago

I'm having the same problem. Any ideas?

scttnlsn commented 11 years ago

Yeah, I like the idea of specifying the directory to deploy in the config file.

mattfelten commented 11 years ago

+1. Would love to see this.

beaucharman commented 11 years ago

+1. an option / feature like this would be awesome

anselmdk commented 11 years ago

Seems it's been implemented here: https://github.com/7twelve/dandelion/commit/30c4e04c2be349d9dec770c7da0ff31e78fbdf6b

Would a pull request with that be accepted?

scttnlsn commented 11 years ago

Yeah, pull request welcome! I would probably want to keep the existing "path" setting instead of "remote_path" just to keep existing configs from breaking.

7twelve commented 11 years ago

Hey there, I've changed stuff back to the old 'path' setting (wasn't even thinking about existing configs) - but I also started working on some branch targeting and a way to deal with #23 - so I'll see about making a clean pull request of just the source directory stuff.

7twelve commented 11 years ago

just closed down my GS account of 10 years, but path: domains/domain.tld/html was working for me

grayghostvisuals commented 11 years ago

I definitely want this :metal:

+1000 on outputting specific directories using dandelion deploy

caycefischer commented 11 years ago

This would be very helpful for situations where the dev environment is different from production.

+1 want this!

scttnlsn commented 11 years ago

This was addressed in #44

grayghostvisuals commented 11 years ago

so rad. thanks.

mattfelten commented 11 years ago

Yeah, I’ve been using it. Such a time saver! Thanks

On Tuesday, July 30, 2013 at 5:31 AM, Dennis Gaebel wrote:

so rad. thanks.

— Reply to this email directly or view it on GitHub (https://github.com/scttnlsn/dandelion/issues/21#issuecomment-21787357).