How to install BBYIDX on Windows?

别说谁变了你拦得住时间么 提交于 2019-12-11 05:16:42

问题


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.


回答1:


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


来源:https://stackoverflow.com/questions/8640297/how-to-install-bbyidx-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!