如何在Windows上安装BBYIDX? [英] How to install BBYIDX on Windows?

查看:168
本文介绍了如何在Windows上安装BBYIDX?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Ruby还是一无所知,仍然想在我干净的Windows 7机器上安装 BBYIDX



如果您不知道如何安装这个特殊的网站,请至少描述如何从头开始运行Ruby on Rails Web应用程序。安装Postgres



您可以从< a href =http://www.postgresql.org/download/windows/ =nofollow noreferrer>这里

发布 pgadmin 工具




  • 创建一个名为 bbyidx (带有密码 bbyidx )和管理权限。创建一个名为 bbyidx_dev 的数据库。




安装 ruby​​

下载并安装Ruby。



安装ruby开发工具包
$ b


  • < a href =http://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20110712-1620-sfx.exe =nofollow noreferrer>下载并安装开发工具包。安装Development Kit时,在Extract To字段中键入 C:\RubyDevKit

  • 点击提取按钮。


  • 在命令行提示符下输入这些命令

      cdC:\RubyDevKit
    ruby​​ dk.rb init
    ruby​​ dk.rb install


  • 关闭命令提示窗口。

  • code> bundler

      gem install bundler 

    下载 BBYIDX 的源代码




    • C上创建名为 bbyidx 的目录


    • 下载最新的项目源代码zipball。

    • 解压下载的zip文件到 c :\bbyidx 目录。 config / environment_custom.rb



      设置以下参数:

        SESSION_SECRET ='给予一些长钥匙'


      $ b

      添加 Postgres gem至 gems 文件



      将以下文本添加到文件的第三行 c:\ bbyidx \Gemfile

        gem'pg'

      安装所需的宝石并创建所需的表格。

       捆绑安装
      rake db:migrate
      rake db:seed

      运行服务器< >

        ruby​​脚本/服务器

      测试服务器



      启动浏览器和 http:// localhost:3000



      参考


      1. 阅读此回答以获取有关co的更多详细信息配置Postgres


      I do not know anything about Ruby still I would like to install BBYIDX on my clean Windows 7 machine.

      If you don't know how to install this special website at least describe me how to run a Ruby on Rails web application from scratch please.

      解决方案

      Install Postgres

      You can download Postgres from here

      Launch pgadmin tool

      • Create a user called bbyidx (with password bbyidx) with admin privileges.

      • Create a database called bbyidx_dev.

      Install ruby

      Download and install Ruby.

      Install ruby dev kit

      • Download and install the dev kit.

      • When installing the Development Kit, type C:\RubyDevKit in the Extract To field. Click the Extract button.

      • Enter these commands in a command prompt

        cd "C:\RubyDevKit"
        ruby dk.rb init
        ruby dk.rb install
        

      • Close the command prompt window.

      Install bundler

      gem install bundler
      

      Download the source code for BBYIDX

      • Create a directory called bbyidx on C drive.

      • Download the latest zipball of the project source code.

      • Unzip the downloaded zip file to c:\bbyidx directory.

      Configure config/environment_custom.rb

      Set following parameter at minimum:

      SESSION_SECRET = 'GIVE SOME LONG KEY HERE'
      

      Add Postgres gem to gems file

      Add the following text to the 3rd line of the file c:\bbyidx\Gemfile

      gem 'pg' 
      

      Install the required gems and create the required tables.

      bundle install
      rake db:migrate
      rake db:seed
      

      Run the server

      ruby script/server
      

      Test the server

      Launch the browser and http://localhost:3000

      Reference

      1. Read this answer for more details about configuring Postgres

      这篇关于如何在Windows上安装BBYIDX?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆