5 comments

  • Ilias IsmanalijevIlias Ismanalijev, over 6 years ago (edited over 6 years ago )

    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;

    2 points
    • Lucas Motta, over 6 years ago

      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.

      1 point
  • Ryan LeFevreRyan LeFevre, over 6 years ago

    Nice to see a capistrano equivalent in the works for NodeJS. The less languages required to get your development environment working, the better!

    1 point
  • Oskar RoughOskar Rough, over 6 years ago (edited over 6 years ago )

    Great! How would you compare it to grunt-ftpush?

    0 points
    • Lucas Motta, over 6 years ago

      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! :)

      1 point