dploy icon indicating copy to clipboard operation
dploy copied to clipboard

Execute from shell script

Open pierrestoffe opened this issue 11 years ago • 3 comments

Hi!

I'm currently trying to automatically deploy my website using a post-commit hook. Here is my script:

#!/bin/bash

set -x
terminal-notifier -message “Triggered” -title “post-commit”
cd /Users/pierrestoffe/Documents/Design\ \&\ Dev/Perso/Portfolio/Summer\ 2013/code
dploy
terminal-notifier -message “Finished” -title “post-commit”

The whole hook works just fine when I commit from the terminal but the "dploy" command does nothing when I'm committing from a git client (Gitbox.app or Github.app). The 'Finished' notification show though...

Would you have an idea why? Thanks in advance!

pierrestoffe avatar Nov 23 '13 14:11 pierrestoffe

Hey @pierrestoffe, I think the post-commit is not working properly because DPLOY runs asynchronous, so your the script would never know when the action is completed. I am gonna look again into this again, because I've used before. I will let you know.

lucasmotta avatar Nov 25 '13 11:11 lucasmotta

Thanks, it would be amazing!

pierrestoffe avatar Nov 25 '13 15:11 pierrestoffe

I would also like to run it from a JS file in Node.js directly. I guess it would be possible but there's no doc, or at least I couldn't find it.

julkue avatar May 07 '18 06:05 julkue