I am wondering if there is an quick and easy way to set up a new
machine which duplicates the rails env of another machine. I have in
the course of last several months installed many gems and it would be
great if I didn’t have to make a list and re-install all the gems.
On a related matter… Is there a way to tie this into migrations? I
mean if I need a new gem is there any way I can get capistrano to
migrate my gems as well as my database schema changes?
I am wondering if there is an quick and easy way to set up a new
machine which duplicates the rails env of another machine. I have in
the course of last several months installed many gems and it would be
great if I didn’t have to make a list and re-install all the gems.
#!/bin/sh
for x in gem list --local | grep '(' | sort | awk 'BEGIN { FS = " " } { print $1 }'; do
echo “gem install $x”
done