![]() You don't need to do anything, Because Ruby, rails, mongrel, and Apache are all packaged together. Last, if you install instantrails directly, it is. Although there is a lot of sweat in the middle and how many brain cells are murdered, you are happy! Haha However, if you use the most common command line mode, you may be able to experience more. Of course, you can also download some integrated development environments, which can be omitted in a lot of work. In this way, a service myapp_hello is added to Windows Services. Finally, open IE and test whether the main interface of Ruby on Rails can be displayed.Īt this point, Ruby on Rails is successfully installed.Ĭommand: mongrel_rails service: Install-N myapp_hello-c d: \ Ruby \ hello-P 3000-e production-N indicates the service name, and-D indicates the rails application directory, -P indicates the mongrel listening port, and-e indicates that the start mode is the production mode. My directory is D: \ Ruby \ helloĪt this point, the system will automatically create Ruby on Rails Applications, automatically initialize the directory structure and some basic stuff.Įnter the hello directory and enter mongrel_rails start-D in the command line to start the mongrel server. If the project name is "hello", run "Rails hello" in the command line to generate a "hello" folder under the installation directory. Create a rails application for testing.Įnter the directory where you want to create the project. Gem install mongrel-1.1.4-x86-mswin32-60.gem latest version 1.1.5 You can also use this command: Gem install mongrel-include-dependencies Gem install mongrel_service-yħ. Gem install cgi_multipart_eof_fix-2.5.0.gem Gem install fastthread-1.0.1-i386-mswin32.gem To install mogrel, you also need to download the gem plugin, daemons, fastthread, cgi_multipart_eof_fix, which is These gemfiles can all be found in the vendor/rails file in the rails.zip package.Īfter installation, enter the following command line: rails-V to view the rails version.įifth, download mongrel, the latest version is: 1.1.4, for: It is not a problem to go To the plug-in directories and install them one by one. Of course, you can also decompress the files. Note: The compressed files do not need to be decompressed. Run the gem install rails command in the command line to complete the installation in seconds. Otherwise, go to the Internet to find it during installation. Copy the file rails-2.0.2.zip to the rubyinstallation directory and rename rails-2.0.2.zip to rails.zip. Instead, download a stand-alone packages version and install it locally. Installing install rails - include-dependencies (I encountered a version error during installation, such as network stability or use this command ), This installation method requires network connection and installation often fails. ![]() Third, download rails, this article downloads rails2.0.2 (the downloaded file name is: rails-2.0.2.zip), is: Open the command line again and enter ruby-V to query the ruby version. to complete the installation, which will be installed in the C:/Ruby directory by default. Http://Second, install Ruby, double-click it, and then click Next. Program You must install Ruby, Gem, rails, and mongrel.įirst, download the latest Ruby one-click installer version on the official website (a ruby standard package manager already comes with rubygems), which is. ![]() The download and installation of Ruby on Rails and the establishment of development environments should be based on Ruby to develop applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |