Installing Ruby on Rails on Ubuntu Dapper or Edgy Установка Ruby On Rails на Ubuntu Edgy і Dapper
Ruby on Rails is a popular new framework for developing web applications. Ruby On Rails є популярним нові основи для розробки веб-додатків. Since Ruby on Rails includes a built-in web server for development purposes, there is no need to install a separate web server. З Ruby On Rails включає в себе вбудований веб-сервер для цілей розвитку, немає необхідності встановлювати окремий веб-сервер.
First you will want to make sure that you've Спочатку ви будете хотіти, щоб переконатися, що ви enabled the universe repository. включений Всесвіту сховище.
Open up a terminal window, and type in the following commands: Відкрийте вікно терміналу і введіть таку команду:
sudo apt-get install ruby ri rdoc Суду Apt-Get установці Ruby RI RDoc
sudo wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz Суду Wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz
tar -xvzf rubygems-0.9.0.tgz Тар-xvzf RubyGems-0.9.0.tgz
cd rubygems-0.9.0 CD RubyGems-0.9.0
sudo ruby setup.rb Суду Ruby setup.rb
sudo gem install rails –include-dependencies Суду Gem установки рейок включати-залежних
To test out the installation, you can create a test rails project: Щоб перевірити установку, ви можете створити тестовий проект рейок:
$ rails testapp $ Рейок TestApp
This will create a test application. Це дозволить створити тестові програми. Change directory into that directory and launch the Ruby on Rails development server (WEBrick) Перейдіть в каталог в цю директорію і запустите Ruby On Rails Development Server (WEBrick)
$ ./script/server $. / Сценарій / сервер
Example: Приклад:
/testapp$ ./script/server / TestApp $. / Сценарій / сервер
=> Booting WEBrick… => WEBrick загрузка ...
=> Rails application started on => Rails додаток, запущене на http://0.0.0.0:3000 http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with –help for options => Ctrl-C для завершення роботи сервера;-виклику за допомогою посилань на
[2006-12-07 05:28:37] INFO WEBrick 1.3.1 [2006-12-07 05:28:37] Info WEBrick 1.3.1
[2006-12-07 05:28:37] INFO ruby 1.8.4 (2005-12-24) [i486-linux] [2006-12-07 05:28:37] Info Ruby 1.8.4 (2005-12-24) [i486-Linux]
[2006-12-07 05:28:37] INFO WEBrick::HTTPServer#start: pid=6687 port=3000 [2006-12-07 05:28:37] Info WEBrick:: HTTPServer # старт: PID = 6687 порт = 3000
You'll notice that the server is listening on port 3000. Ви помітите, що сервер працює на порту 3000. Open up a browser, and go to Відкрийте браузер і перейдіть на http://localhost:3000 http://localhost:3000


Daily Email Updates Email Щоденні оновлення
You can get our how-to articles in your inbox each day for free. Ви можете отримати наші довідкові статті у Вашу поштову скриньку щодня безкоштовно. Just enter your name and email below: Просто введіть ваші ім'я та адресу електронної пошти нижче:



You should always install the latest version of Ви завжди повинні встановити останню версію Gems Дорогоцінні камені (currently 1.0.1). (в даний час 1.0.1).
Thanks, It helped. Дякую, допомогло.