Programmer345
Programmer345

Reputation: 580

No such file or directory @ rb_sysopen

When i run rails server command i get this error.How can i get rid of it

=> Booting Thin
=> Rails 3.2.11 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/Users//.rvm/gems/ruby-2.1.2/gems/railties-3.2.11/lib/rails/application/configuration.rb:115:in `read': No such file or directory @ rb_sysopen - /Users/Documents/rails/angular-rails-seed/config/database.yml (Errno::ENOENT)

Upvotes: 1

Views: 11823

Answers (1)

infused
infused

Reputation: 24367

Your config/database.yml file is missing. Recreate it. A default database.yml looks like:

# SQLite version 3.x
#   gem install sqlite3
#
#   Ensure the SQLite 3 gem is defined in your Gemfile
#   gem 'sqlite3'
#
default: &default
  adapter: sqlite3
  pool: 5
  timeout: 5000

development:
  <<: *default
  database: db/development.sqlite3

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  <<: *default
  database: db/test.sqlite3

production:
  <<: *default
  database: db/production.sqlite3

Upvotes: 4

Related Questions