background preloader

Ambiente

Facebook Twitter

RVM: Controlando várias versões de Ruby. Setup-guide-rails-stack-with-passenger-rvm-bundler-apache-and-mysql-on-ubuntu. Sunday, 16 January 2011 • Permalink Here’s how I like to setup a Rails stack on Ubuntu 10.4.

Setup-guide-rails-stack-with-passenger-rvm-bundler-apache-and-mysql-on-ubuntu

This recipe makes use of Apache as the webserver with Passenger to serve Rails, MySQL as the database, RVM (installed system-wide) to manage Ruby (I select Ruby 1.9.2 as the default these days), and the latest Rails, which is 3.0.3 as of this morning, and Bundler for installing gems. It also makes a system user for you to use, and a deploy user for deployments with Capistrano. This isn’t a script, so don’t try a cut-n-paste here. You’ll want to enter the commands one by one. This also isn’t a comprehensive guide as much as it is a quick-start recipe for people who are already competent on the command line.

And as usual, follow these steps at your own risk. Echo -e "\n111.222.333.444 server.example.com server\n" >> /etc/hosts echo "servername" > /etc/hostname Replace 111.222.333.444 with your IP, and servername.example.com and servername with the name of your server in the lines above. 23 Amazing And Open Source Ruby On Rails Applications. Home » Extras » 23 Amazing And Open Source Ruby On Rails Applications Ruby on Rails is a powerful web framework that helps creating web applications easier, faster & writing an organized code.

23 Amazing And Open Source Ruby On Rails Applications

There are lots of websites that use it including popular ones like Twitter, Basecamp, AboutUs & many more. Also, Ruby on Rails powers some amazing open source web applications which you may want to use directly or improve further. Here is a well-categorized 23 open source Ruby on Rails applications: (Note: There are few Merb apps. in the list too which we believe is ok considering Rails & Merb are getting into the same package with Rails 3.) Project, Task & Time Management Notes Notes is an easy to use to-do-list & notes manager application. RVM: Controlando várias versões de Ruby. Ruby Version Manager ele é um gerenciador para vários ambientes de ruby, ou seja, você pode instalar por exemplo ruby 1.8.7 , 1.9.1 ou até jruby e alternar entre ele facilmente.

RVM: Controlando várias versões de Ruby

Qual o propósito do RVM ? Com o RVM você pode criar ambientes específicos para cada projeto, utilizando a versão de Ruby que mais se apropria a cada situação, mas o mais legal não é apenas o gerenciamento de ruby, mas sim das Gem’ s que você irá usar, resumindo, nessa ambiente criado você pode usar gems específicas em versões específicas, utilizando a versão do ruby de sua preferência.

Alguns Benefícios: Projetos mais independentes: Alguns projetos precisam de versões específicas gem’ s, ou se você quiser instalar uma Gem para apenas um ambiente, tendo assim um maior controle, pois o ambiente padrão não conterá aquela gem.Você pode testar como seu projeto se comporta com diferentes versões de gemsVersionamento do Ruby(é muito fácil alterar ente Ruby’ s) talk is cheap, show me the code Instalação sudo gem install rvm.