Streamlining dep dev in a VM

18 views
Skip to first unread message

Chris Berkhout

unread,
Jul 6, 2011, 9:38:15 AM7/6/11
to babush...@googlegroups.com
Hi All,

In the past when writing babushka deps, I'd need to commit and push
every tiny change manually, before rerunning the deps in my VM. It
always seemed like one too many switches and delays.

I've just found a setup that helps with that.

I run "asdf" on my dev machine to serve my babushka-deps directory on
port 9292 and add that local repo as the dep source in the VM
(something like `babushka sources -a ns
http://chris-berkhouts-macbook-pro-2.local:9292/.git`). That means I
don't have to push back to GitHub anymore.

Then I run "guard" in another terminal, with it set to commit and run
"git update-server-info" whenever files change. That saves me manually
committing on minor tweaks.

I'll do a "git rebase -i" when I've completed a larger unit of
changes, so I can squash the auto commits together and give them a
useful commit message.

Would anyone else find that setup useful?

If so I may extract it out into a gem so you just run one command to
turn on autocommit and repo serving.

Cheers.
Chris

alovak

unread,
Aug 22, 2011, 5:26:58 AM8/22/11
to babushka_app
What I did in this case:

1. mount dir with deps to /mnt/mymachine/bla/
2. make a 'deps' symlink to dir with deps in ~/.babushka: ln -s /mnt/
mymachine/bla/babushka-deps deps

that's all :) no need to push changes in order to get them in your VM.


On Jul 6, 4:38 pm, Chris Berkhout <chrisberkh...@gmail.com> wrote:
> Hi All,
>
> In the past when writing babushka deps, I'd need to commit and push
> every tiny change manually, before rerunning the deps in my VM. It
> always seemed like one too many switches and delays.
>
> I've just found a setup that helps with that.
>
> I run "asdf" on my dev machine to serve my babushka-deps directory on
> port 9292 and add that local repo as the dep source in the VM
> (something like `babushka sources -a nshttp://chris-berkhouts-macbook-pro-2.local:9292/.git`). That means I

Ben Hoskings

unread,
Aug 22, 2011, 5:57:44 AM8/22/11
to babush...@googlegroups.com
Sounds like a good setup. The only thing I would change is symlinking to ~/.babushka/deps as alovak said, instead of adding a source. That directory is read from as a local source without attempting a git update.

Also, you don't need to use a prefix to run deps from ~/.babushka/deps.

./babushka-deps (i.e. within the current dir) is read from in the same way.

-Ben

> --
> To post, email babush...@googlegroups.com
> To unsubscribe, email babushka_app...@googlegroups.com
> ~
> http://babushka.me
> http://github.com/benhoskings/babushka
> http://groups.google.com/group/babushka_app

Chris Berkhout

unread,
Aug 22, 2011, 6:20:30 AM8/22/11
to babush...@googlegroups.com
Okay, cool. Yeah, that's simpler.

In the past I mounted the guest OS's dep directory on the host, but
the git update got in the way when going in that direction.

Cheers,
Chris

Reply all
Reply to author
Forward
0 new messages