So how to update changes made locally to remote server
Very simple to do that, make amendments in your project and than follow these steps
Note: Be sure you are in root of application directory
Note: Be sure you are in root of application directory
For this you need to sign-up for two sites first is Heroku and other is github..
After sign-up go to quick start page of heroku.com and follow instructions and in the end you would have a hosted rails application
Do comment
This post will just let you install only on version of rails on your Fedora 14 that is rails 3 but first we will install rails 2.3.8 from fedora repository. Keep in mind you will able to run only one version of Rails with this method and if you want to run multiple version or installtion than you need to follow on of my old post in which i have used RVM for manging different version of Ruby and also Rails.
Installing and setting up Rails 3 on Fedora 13 (Ruby on Rails 3 RC)
[ismail@localhost ~]$ sudo yum install rubygem-rails ruby-devel mysql-devel-yNow you have running version rails 2.3.8 without mysql database support for rails
[ismail@localhost ~]$ sudo yum install ruby-mysql -y Note: Now you can stop following if you don't want to install rails 3 on fedora 14
[ismail@localhost ~]$ sudo gem install rails If all went cool than you have running version of rails 3 on fedora 14 now create an application and run bundle install to test your installation
[ismail@localhost ~]$ rails new my_app -d mysql [ismail@localhost ~]$ cd my_app [ismail@localhost ~]$ bundle installYour wait have both ended and not. ended in sense now you can install latest release on fedora 13 or fedora 14 using RVM. but bad news is for ruby 1.9.x native install won't come early. Sooner we will have ruby1.8.7 but no chance for ruby 1.9.x so start using ruby1.9.x on rvm if you are curious to that actually really a cool application that can handle multiple ruby version at the same time. if you want to install ruby 1.9.x than you can follow by old post which is about installing ruby on rails 3 on fedora 13.
Yes Rails 3 have been released and it requires ruby version 1.8.7 or 1.9.2 actually 1.9.1 have number of bugs so rails community recommends you to use 1.9.2 so nor yet ubuntu have ruby 1.9.2 (the day i am posting this post till than ) so you can install using rvm and for installation of rails 3 on fedora you can follow my old post about installing ruby on rails 3 release candidate as rails is released so now you can you use the released version of rails 3. and my previous post will work fine for that. Well if you are running ruby 1.8.7 or above you can install rails 3 by just with single command
sudo gem install rails sudo yum install mysql-devel Use about command in fedora and than install using gem or through bundle install command in your rails project everything will work cool and that will actually install mysql2 driver
this episode describe you how to create read more links in your rails projects
First make sure following packages are installed on you fedora 13 system.(Requires especially if you have installed fedora from live CD instead of DVD)
Do almost every task where possible as normal user instead of super user for this installation
To start installation of Rails 3 on fedora we are using RVM(ruby version manager) so we can use our old stable release as well latest beta on our fedora system
First of all we need to install RVM so lets begin
Now add the following line to your .bashrc file:
Now you need to close termial and start again and run following command:
Above command will reveal the dependencies for installing ruby using RVM cuz it compile stuff and than you can install ruby without any pain with single command:
Now lets install ruby 1.9.2-head cuz rails 3 requires ruby 1.8.7 or greater and 1.9.2 have less bugs than others
Now lets make ruby 1.9.2 as default so we can install rails 3 pre and don't worry you can easily come back to previous version with single command without and pain or problem
Now its time to install Rails 3 its simple to do just issue one command and you are done with installation
Your installation completed but no database support yet so you need to install sqlite3-ruby so you can work with rails 3 beta
Now create your applications in Rails 3. Lets start.....
Now go to newly created application folder
Now we need to run last command(Hope so) so our system fully working with rails
Now Start your rails server
Open your browser and open localhost:3000

gem install rails --pre again and don't use sudo with this command as it will install in user directory so no need and you can make sure that gem using ruby 1.9.2-head by command gem env Just one command and every thing is done
[ismail@localhost ~]$ sudo yum install rubygem-rails ruby-mysql rubygem-sqlite3-ruby rubygem-mongrel* rubygem-json rubygem-git ruby-devel [ismail@localhost ~]$ sudo gem update Following Error i confront so to resolve the problem here is new way
-bash-4.0$ rails my_app -d mysql
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:827:in `report_activate_error': RubyGem version error: rack(1.1.0 not ~> 1.0.0) (Gem::LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:261:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:296:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `each'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:296:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `each'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `activate'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:68:in `gem'
from /usr/bin/rails:18
[ismail@localhost ~]$ sudo gem update So we are done here and enjoy programming with rails on Fedora 12
Ruby On Rails Rocks