lucasmotta / dploy

⛔️ currently unmaintained ⛔️
http://lucasmotta.github.io/dploy/
MIT License
990 stars 89 forks source link

Execute from shell script #29

Open pierrestoffe opened 10 years ago

pierrestoffe commented 10 years ago

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!

lucasmotta commented 10 years ago

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.

pierrestoffe commented 10 years ago

Thanks, it would be amazing!

julkue commented 6 years ago

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.