database_configuration' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activerecord-4.0.0/lib/active_record/railtie.rb:174:in
block (2 levels) in class:Railtie'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:38:in instance_eval' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:38:in
execute_hook'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:28:in block in on_load' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:27:in
each'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:27:in on_load' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activerecord-4.0.0/lib/active_record/railtie.rb:173:in
block in class:Railtie'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:30:in instance_exec' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:30:in
run'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:55:in block in run_initializers' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:54:in
run_initializers'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application.rb:215:in initialize!' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in
method_missing'
/home/faras/www/ustedes/legislative/config/environment.rb:5:in <top (required)>' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in
require'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in block in require' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in
load_dependency'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in require' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application.rb:189:in
require_environment!'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application.rb:249:in block in run_tasks_blocks' /home/faras/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in
eval'
/home/faras/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in <main>' Tasks: TOP => db:migrate => environment (See full trace by running task with --trace) ... Creating default admin user ... rake aborted! Could not load database configuration. No such file - /home/faras/www/ustedes/legislative/config/database.yml /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application/configuration.rb:110:in
database_configuration'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activerecord-4.0.0/lib/active_record/railtie.rb:174:in block (2 levels) in <class:Railtie>' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:38:in
instance_eval'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:38:in execute_hook' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:28:in
block in on_load'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:27:in each' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:27:in
on_load'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activerecord-4.0.0/lib/active_record/railtie.rb:173:in block in <class:Railtie>' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:30:in
instance_exec'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:30:in run' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:55:in
block in run_initializers'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:54:in run_initializers' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application.rb:215:in
initialize!'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in method_missing' /home/faras/www/ustedes/legislative/config/environment.rb:5:in
<top (required)>'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in require' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in
block in require'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in load_dependency' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in
require'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application.rb:189:in require_environment!' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application.rb:249:in
block in run_tasks_blocks'
/home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activerecord-4.0.0/lib/active_record/railties/databases.rake:180:in block (2 levels) in <top (required)>' /home/faras/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in
eval'
/home/faras/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in `
Hi, I have a new system and I'm trying to run legislative. I installed ruby and rails from debian's default repos. Then I needed to run: sudo gem install bundler
After that I run: bash setup.sh
And i get this: Legislative install script
... Updating your bundle in development environment ... Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0 ... Creating your database ... Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0 Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0 ... Creating default admin user ... Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0 ... Database created...
To start your server run: rails s
... FINISH! ...
So I might need to update Ruby, which you might list on the requirements page as being Ruby 2 and not 1.9.3
Then I run and I get several notices.
$ rails s /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead. /usr/lib/ruby/vendor_ruby/railties/lib/rails_generator/generators/applications/app/app_generator.rb:7: Use RbConfig instead of obsolete and deprecated Config. exists
exists app/controllers exists app/helpers exists app/models exists app/views/layouts exists config/environments exists config/initializers exists config/locales exists db exists doc exists lib exists lib/tasks exists log exists public/images exists public/javascripts exists public/stylesheets exists script/performance exists test/fixtures exists test/functional exists test/integration exists test/performance exists test/unit exists vendor exists vendor/plugins exists tmp/sessions exists tmp/sockets exists tmp/cache exists tmp/pids identical Rakefile identical README identical app/controllers/application_controller.rb identical app/helpers/application_helper.rb identical config/database.yml identical config/routes.rb identical config/locales/en.yml identical db/seeds.rb identical config/initializers/backtrace_silencers.rb identical config/initializers/inflections.rb identical config/initializers/mime_types.rb identical config/initializers/new_rails_defaults.rb overwrite config/initializers/session_store.rb? (enter "h" for help) [Ynaqdh] Y - yes, overwrite n - no, do not overwrite a - all, overwrite this and all others q - quit, abort d - diff, show the differences between the old and the new h - help, show this help overwrite config/initializers/session_store.rb? (enter "h" for help) [Ynaqdh] Y - yes, overwrite n - no, do not overwrite a - all, overwrite this and all others q - quit, abort d - diff, show the differences between the old and the new h - help, show this help overwrite config/initializers/session_store.rb? (enter "h" for help) [Ynaqdh] Y force config/initializers/session_store.rb overwrite config/initializers/cookie_verification_secret.rb? (enter "h" for help) [Ynaqdh] Y force config/initializers/cookie_verification_secret.rb identical config/environment.rb identical config/boot.rb identical config/environments/production.rb identical config/environments/development.rb identical config/environments/test.rb identical script/about identical script/console identical script/dbconsole identical script/destroy identical script/generate identical script/runner identical script/server identical script/plugin identical script/performance/benchmarker identical script/performance/profiler identical test/test_helper.rb identical test/performance/browsing_test.rb identical public/404.html identical public/422.html identical public/500.html identical public/index.html identical public/favicon.ico identical public/robots.txt identical public/images/rails.png identical public/javascripts/prototype.js identical public/javascripts/effects.js identical public/javascripts/dragdrop.js identical public/javascripts/controls.js identical public/javascripts/application.js identical doc/README_FOR_APP identical log/server.log identical log/production.log identical log/development.log identical log/test.log exists vendor/rails