scttnlsn / dandelion

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

Doesn't Work with Media Temple Grid-Service Servers #41

Closed grayghostvisuals closed 10 years ago

grayghostvisuals commented 11 years ago

I've tried many methods with no luck.

Due to the way the (gs) Grid-Service Server is configured, they use symlinks to connect certain directories.

The .home directory has a symlink, which navigates two levels up and places you in /home/XXXXXX/domains. This symlink exists to maintain a connection between certain (gs) Grid-Service Server services.

Here are all the paths I've tried with no such luck using dandelion deploy. I've also included my dandelion.yml settings file.

Try #1 - Full Root Path nfs/cXX/home/mnt/home/XXXXXX/domains/sub-domain.grayghostvisuals.com/html/

Result: This puts everything in a "home" directory within my ".home" directory

Try #2 home/XXXXXX/domains/sub-domain.grayghostvisuals.com/html/

Result: This puts everything in a "home" directory within my ".home" directory

Try #3 home/XXXXXX/users/.home/domains/sub-domain.grayghostvisuals.com/html/

Result: This puts everything in a "home" directory within my ".home" directory

dandelion.yml

# Required
# --------

scheme: sftp
host: sXXXXXX.gridserver.com
username: XXXXXXXXXXX
password: XXXXXXXXXXX

# Optional
# --------
# Remote path
path: home/XXXXXX/users/.home/domains/sub-domain.grayghostvisuals.com/html/
port: 22

# These files (from Git) will not be uploaded during a deploy
exclude:
    - .gitignore
    - dandelion.yml
    - new0513/
chason commented 11 years ago

Hi! I'm a software engineer working at Media Temple, perhaps I can help.

All of the tries that you attempted are ALMOST correct. The only issue with them is that there should be a leading slash. So: home/XXXXXX/domains/sub-domain.grayghostvisuals.com/html/ should be: /home/XXXXXX/domains/sub-domain.grayghostvisuals.com/html/

As far as the different methods you tried, the second one (which I used as an example above) is the most correct. While they should all work, the path in the first may change over time and the path in the second one has extraneous directories in it.

Please let me know in this issue if this doesn't fix your problem and I'll do what I can to help out.

grayghostvisuals commented 11 years ago

By golly it finally works! Thanks for coming to the rescue @chason :metal:

One strange thing was that including the additional forward slash now looks like this in the sftp URI…

sftp://grayghostvisuals.com@sXXXXXX.gridserver.com//home/XXXXXX/domains/subdomain.grayghostvisuals.com/html/

jsftwww commented 10 years ago

Glade I found this, thanks!