Reinstalling list of GEMs on a new server

#!/usr/bin/perl -w # We’re strict use strict; # Get list of installed gems my @gems = qx(gem list); chomp(@gems); # Create commands foreach my $gem (@gems) {     # Match gem and versions     $gem =~ m/(S+)s((.+))/i;     # Gem name     $gem = $1;     # Save them into array      my @gem_versions = split(/,/, $2);     # Print out commands […]


Backup your old Repository svnadmin dump /path/to/repository > repo_name.svn_dump Import your old repository into the new one svnadmin load /path/to/repository < repo_name.svn_dump Installation # Install required packages $ sudo apt-get install subversion libapache2-svn # Create subversion repositories: sudo mkdir /var/svn sudo chown -R www-data:www-data /var/svn

Ruby Enterprise Edition /opt/ree/bin/gem update –system 1.5.2 delete all gems in ree: /opt/ree/bin/gem list –no-version | xargs /opt/ree/bin/gem uninstall -aIx /etc/environment: PATH=”/opt/ree/bin ….” sudo passenger-memory-stats sudo passenger-status apache2 -V (verifica prefork sau itk) apache2ctl -M (verifica modulele)