ruby - Trying to Setup an ROR environment with Rails 4.0.0 but Webrick Webserver will not run uaing Rails s -


installed: - windows 7 64bit - ruby200-x64 - rails (4.0.0) - rubygems-update (2.0.3) - mysql2(0.3.11) - mysql-installer-community-5.6.12.1

trying run webrick command: reails s, after creating new rails application called simple_cms: (please see command on line below)

any on configuration appreciated. not sure going wrong.... please help!!.

c:\users\user\my documents\sites\simple_cms>rails s  usage: rails new app_path [options]  options: -r, [--ruby=path]              # path ruby binary of choice                              # default: c:/ruby200-x64/bin/ruby.exe -m, [--template=template]      # path application template (can f ilesystem path or url)   [--skip-gemfile]           # don't create gemfile -b, [--skip-bundle]            # don't run bundle install -g, [--skip-git]               # skip .gitignore file   [--skip-keeps]             # skip source control .keep files -o, [--skip-active-record]     # skip active record files -s, [--skip-sprockets]         # skip sprockets files -d, [--database=database]      # preconfigure selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3 /jdbcpostgresql/jdbc)           # default: sqlite3  -j, [--javascript=javascript]  # preconfigure selected javascript library                              # default: jquery -j, [--skip-javascript]        # skip javascript files   [--dev]                    # setup application gemfile pointing t  o rails checkout   [--edge]                   # setup application gemfile pointing rails    repository -t, [--skip-test-unit]         # skip test::unit files   [--rc=rc]                  # path file containing configuration options rails command   [--no-rc]                  # skip loading of configuration options f 

rom .railsrc file

runtime options: -f, [--force] # overwrite files exist -p, [--pretend] # run not make changes -q, [--quiet] # suppress status output -s, [--skip] # skip files exist

rails options: -h, [--help] # show message , quit -v, [--version] # show rails version number , quit

description: 'rails new' command creates new rails application default directory structure , configuration @ path specify.

 can specify command-line arguments used every time 'rails new' runs in .railsrc configuration file in home directory.  note arguments specified in .railsrc file don't affect defaults values shown above in message. 

example: rails new ~/code/ruby/weblog

this generates skeletal rails installation in ~/code/ruby/weblog. see readme in newly created application going."    gem list: 

c:\users\user\my documents\sites\simple_cms>gem list

* local gems *

  • actionmailer (4.0.0)
  • mactionpack (4.0.0)
  • activemodel (4.0.0)
  • activerecord (4.0.0)
  • activerecord-deprecated_finders (1.0.3)
  • activesupport (4.0.0)
  • arel (4.0.0)
  • atomic (1.1.10)
  • bigdecimal (1.2.0)
  • builder (3.1.4)
  • bundler (1.3.5)
  • coffee-rails (4.0.0)
  • coffee-script (2.2.0)
  • coffee-script-source (1.6.3)
  • erubis (2.7.0)
  • execjs (1.4.0)
  • hike (1.2.3)
  • i18n (0.6.4)
  • io-console (0.4.2)
  • jbuilder (1.4.2)
  • jquery-rails (3.0.3, 3.0.2)
  • json (1.8.0, 1.7.7)
  • mail (2.5.4)
  • mime-types (1.23)
  • minitest (4.7.5, 4.3.2)
  • multi_json (1.7.7)
  • mysql (2.9.1)
  • mysql2 (0.3.11)
  • polyglot (0.3.3)
  • psych (2.0.0)
  • rack (1.5.2)
  • rack-test (0.6.2)
  • rails (4.0.0)
  • railties (4.0.0)
  • rake (10.1.0, 0.9.6)
  • rdoc (4.0.0, 3.12.2)
  • rubygems-update (2.0.3)
  • sass (3.2.9)
  • sass-rails (4.0.0)
  • sdoc (0.3.20)
  • sprockets (2.10.0)
  • sprockets-rails (2.0.0)
  • test-unit (2.0.0.0)
  • thor (0.18.1)
  • thread_safe (0.1.0)
  • tilt (1.4.1)
  • treetop (1.4.14)
  • turbolinks (1.2.0)
  • tzinfo (0.3.37)
  • uglifier (2.1.1)

database.yml:

# mysql.  versions 4.1 , 5.0 recommended. # # install mysql driver #   gem install mysql2 # # ensure mysql gem defined in gemfile #   gem 'mysql2' # # , sure use new-style password hashing: #   http://dev.mysql.com/doc/refman/5.0/en/old-client.html  development: adapter: mysql2 encoding: utf8 database: simple_cms_development pool: 5 username: root password:  host: localhost  # warning: database defined "test" erased , # re-generated development database when run "rake". # not set db same development or production.  test: adapter: mysql2 encoding: utf8 database: simple_cms_test pool: 5 username: root password:  host: localhost  production: adapter: mysql2 encoding: utf8 database: simple_cms_production pool: 5 username: root password: host: localhost 

if want use webrick, easiest way run rack on config.ru file in project root directory, rails includes in new applications default:

rackup

that should automatically start rails app on webrick server


Comments