Ruby on Rails development from scratch (Windows) (i)

Source: Internet
Author: User
Tags command line ruby on rails

Use Instantrails to quickly build ruby on rails development environment

There's been a lot of interest in Ruby on Rails to see what's been praised by many people, but the development that has been done under Windows is a headache for Ruby on Rails's development environment, which is why Ruby on Rails has never started. Just saw the instantrails in Javaeye, a suite of all in one, to help you quickly build the Ruby on Rails development environment, immediately under a try, OK, relatively smooth, at least can run up with examples. Here's how to quickly build a ruby on Rails development environment with simple writing and instantrails.

1. Download Instantrails:

Download Address: http://rubyforge.org/frs/?group_id=904, I downloaded the latest version of 1.7.

2. In the local decompression Instantrails-1.7-win.zip, completes after runs InstantRails.exe the program.

Just run up, because to start MySQL and Apache, may prompt 80 ports to be occupied,

The Apache configuration file needs to be modified to get rid of the 80-port-related settings, such as 81. Here, you just have to search and replace it.

When you're done, restart Apache, and when you're done, you should look like the following picture:

At this point, you can start running the instance.

3. Starting with the leftmost icon, the rails applications\manage rails applications running the menu will show the following interface:

Here we select typo-2.6.0, click the Start with Mongrel button, and wait until the prompt in the pop-up command line window shows "use CTRL + C to Stop" and you can run the example program.

4. Enter the address in the browser: http://127.0.0.1:3002, the example is running up, is a blog program. After creating the user, set up, you can browse to the home page, as shown:

It's easy, because a friend who's been building a ruby on Rails development environment should try it.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.