Love it. Would be a great tool when working with FTP-based clients who are stuck with PHP/shared hosting.
Would work great as a git post-receive hook;
The hook idea is kind of integrated for now. But instead of the post-receive I am using the post-commit (I may change that later). You can deploy through your commit message by adding the #dploy tag, like this:
git commit -am "Amends on the homepage #dploy dev stage live"
That will deploy to: dev, stage and live servers.
Nice to see a capistrano equivalent in the works for NodeJS. The less languages required to get your development environment working, the better!
Great! How would you compare it to grunt-ftpush?
Hey Oskar! From what I understood the grunt-ftpush is not linked to git to track the files. They have their "own" system to manage that, but they have quite a few limitations that is explained in their wiki page. By reading their README, I've raised a few differences/advantages of DPLOY:
- Support for SFTP
- Uses git to track your files (to rename, upload and delete)
- You can upload to multiple servers with one command (dev, stage and live for example)
- Works well for teams, because every time you upload something to the ftp, a .revision file is created on the server that contains the latest hash that was uploaded. This way we can get the diff from the server and your local repo
- Loads of options, like:
- check:true - will prompt you a list of all the files that will be uploaded, so you have a chance to confirm the files before.
- slots:3 - you can create multiple ftp connections to speed up the upload process
But please, correct if I am wrong. I've never used grunt-ftpush before. This information is based on their wiki page that I just read. Give it a go and let me know what do you think! :)