Hacker News new | past | comments | ask | show | jobs | submit login

Right, but why would you need to? You said you were more comfortable in bash, so why not just do it in bash? Or Make?

  #!/usr/bin/bash

  set -e

  git push origin master
  rsync -crz \
    --exclude-from='rsync-exclude.txt' \
    --delete _site/ \
    cfinazzo1@chrisfinazzo.com:/home/cfinazzo1/chrisfinazzo.com

Stick that in a file called `deploy`, run `chmod +x deploy`, and then you can invoke it with `./deploy`.

Make would be something similar. In fact your entire Gulpfile in Make would look like this:

  .PHONY: doctor build serve deploy

  doctor:
    bundle exec jekyll doctor

  build: doctor
    time bundle exec jekyll build --incremental

  serve: doctor
    time bundle exec jekyll serve --incremental

  deploy:
    git push origin master
    rsync -crz \
     --exclude-from='rsync-exclude.txt' \
     --delete _site/ cfinazzo1@chrisfinazzo.com:/home/cfinazzo1/chrisfinazzo.com



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: