Exiting while starting the server: rails s - ruby-on-rails

Exiting while starting the server: rails s. My OS is Ubuntu 12.04.The terminal output listed below.
rails s
=> Booting Thin
=> Rails 4.2.6 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/home/jobi/Music/inaturalist-master/config/environments/development.rb:23:in `initialize': No such file or directory - /home/jobi/Music/inaturalist-master/config/smtp.yml (Errno::ENOENT)
from /home/jobi/Music/inaturalist-master/config/environments/development.rb:23:in `open'
from /home/jobi/Music/inaturalist-master/config/environments/development.rb:23:in `block in <top (required)>'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/railtie.rb:210:in `instance_eval'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/railtie.rb:210:in `configure'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/railtie.rb:182:in `configure'
from /home/jobi/Music/inaturalist-master/config/environments/development.rb:1:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.0.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
from /usr/local/lib/ruby/gems/2.0.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/engine.rb:598:in `block (2 levels) in <class:Engine>'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/engine.rb:597:in `each'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/engine.rb:597:in `block in <class:Engine>'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `run'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /usr/local/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
from /usr/local/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /usr/local/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:44:in `each'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:44:in `tsort_each_child'
from /usr/local/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
from /usr/local/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /usr/local/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /usr/local/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /usr/local/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/application.rb:352:in `initialize!'
from /home/jobi/Music/inaturalist-master/config/environment.rb:5:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.0.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
from /usr/local/lib/ruby/gems/2.0.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /home/jobi/Music/inaturalist-master/config.ru:3:in `block in <main>'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
from /home/jobi/Music/inaturalist-master/config.ru:in `new'
from /home/jobi/Music/inaturalist-master/config.ru:in `<main>'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/commands/server.rb:61:in `app'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/commands/server.rb:139:in `log_to_stdout'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/commands/server.rb:78:in `start'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:80:in `block in server'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `server'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'

Something in your development.rb file wants to open the config/smtp.yml configuration file which is not present (see line 23). Probably this is due to a gem not configured properly. If you need further help, please add the development.rb to the question.

Related

Rails: undefined method 'to_sym' for nil:NilClass (NoMethodError) when running production server

I'm trying to run my Rails app locally such that it will point to the database used by the deployed app on Heroku. Using heroku pg:credentials DATABASE, I was able to get the information about the production database and use that to populate the production info in database.yml. However, when I run rails s -e production, I get the following error:
=> Booting Puma
=> Rails 4.2.6 application starting in production on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/Users/Robert/.rvm/gems/ruby-2.2.2/gems/braintree-2.68.2/lib/braintree/configuration.rb:59:in `environment=': undefined method `to_sym' for nil:NilClass (NoMethodError)
from /Users/Robert/Developer/Git-Repositories/inspectx-live/config/initializers/braintree.rb:1:in `<top (required)>'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `load'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `block in load'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `load'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/engine.rb:652:in `block in load_config_initializer'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.6/lib/active_support/notifications.rb:166:in `instrument'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/engine.rb:651:in `load_config_initializer'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/engine.rb:615:in `each'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/engine.rb:615:in `block in <class:Engine>'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `run'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/Robert/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
from /Users/Robert/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /Users/Robert/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:420:in `block (2 levels) in each_strongly_connected_component_from'
from /Users/Robert/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
from /Users/Robert/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:419:in `block in each_strongly_connected_component_from'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/initializable.rb:44:in `each'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/initializable.rb:44:in `tsort_each_child'
from /Users/Robert/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:413:in `call'
from /Users/Robert/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:413:in `each_strongly_connected_component_from'
from /Users/Robert/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /Users/Robert/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `each'
from /Users/Robert/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `call'
from /Users/Robert/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
from /Users/Robert/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
from /Users/Robert/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/application.rb:352:in `initialize!'
from /Users/Robert/Developer/Git-Repositories/inspectx-live/config/environment.rb:5:in `<top (required)>'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /Users/Robert/Developer/Git-Repositories/inspectx-live/config.ru:3:in `block in <main>'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
from /Users/Robert/Developer/Git-Repositories/inspectx-live/config.ru:in `new'
from /Users/Robert/Developer/Git-Repositories/inspectx-live/config.ru:in `<main>'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/commands/server.rb:61:in `app'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/rack-1.6.4/lib/rack/server.rb:272:in `start'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/commands/server.rb:80:in `start'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:80:in `block in server'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `server'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>'
from /Users/Robert/Developer/Git-Repositories/inspectx-live/bin/rails:9:in `require'
from /Users/Robert/Developer/Git-Repositories/inspectx-live/bin/rails:9:in `<top (required)>'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/spring-1.7.1/lib/spring/client/rails.rb:28:in `load'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/spring-1.7.1/lib/spring/client/rails.rb:28:in `call'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/spring-1.7.1/lib/spring/client/command.rb:7:in `call'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/spring-1.7.1/lib/spring/client.rb:30:in `run'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/spring-1.7.1/bin/spring:49:in `<top (required)>'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/spring-1.7.1/lib/spring/binstub.rb:11:in `load'
from /Users/Robert/.rvm/gems/ruby-2.2.2/gems/spring-1.7.1/lib/spring/binstub.rb:11:in `<top (required)>'
from /Users/Robert/Developer/Git-Repositories/inspectx-live/bin/spring:13:in `require'
from /Users/Robert/Developer/Git-Repositories/inspectx-live/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
I'm relatively new to Rails so I'm not sure what to do. I think this has something to do with Braintree integration, but I'm really not sure.
Edit: Here are the contents of config/initializers/braintree.rb:
Braintree::Configuration.environment = ENV['BRAINTREE_ENV']
Braintree::Configuration.merchant_id = ENV['BRAINTREE_MERCHANT_ID']
Braintree::Configuration.public_key = ENV['BRAINTREE_PUBLIC_KEY']
Braintree::Configuration.private_key = ENV['BRAINTREE_PRIVATE_KEY']
A note about braintree.rb: there was no private info to obscure. The above is exactly how it appears in braintree.rb. I didn't originally set up the Braintree integration, so I'm not sure if there was supposed to be private info in the ENV fields.

Can't start server

Cloned project from heroku and installed all gems with bundle.
That is what my server say to me.
$ rails s
=> Booting Puma
=> Rails 4.2.2 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/common.rb:176:in `split': bad URI(is not URI?): (URI::InvalidURIError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/common.rb:211:in `parse'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/common.rb:747:in `parse'
from /Library/Ruby/Gems/2.0.0/gems/pusher-0.15.1/lib/pusher/client.rb:53:in `url='
from /Users/abdullahatkaev/the247clinic/config/initializers/pusher.rb:1:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:268:in `load'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:268:in `block in load'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:268:in `load'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/engine.rb:652:in `block in load_config_initializer'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/notifications.rb:166:in `instrument'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/engine.rb:651:in `load_config_initializer'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/engine.rb:615:in `each'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/engine.rb:615:in `block in <class:Engine>'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/initializable.rb:30:in `instance_exec'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/initializable.rb:30:in `run'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/initializable.rb:55:in `block in run_initializers'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/initializable.rb:44:in `each'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/initializable.rb:44:in `tsort_each_child'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/initializable.rb:54:in `run_initializers'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/application.rb:352:in `initialize!'
from /Users/abdullahatkaev/the247clinic/config/environment.rb:5:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in `require'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in `block in require'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in `require'
from /Users/abdullahatkaev/the247clinic/config.ru:3:in `block in <main>'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
from /Users/abdullahatkaev/the247clinic/config.ru:in `new'
from /Users/abdullahatkaev/the247clinic/config.ru:in `<main>'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/commands/server.rb:61:in `app'
from /Library/Ruby/Gems/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/commands/server.rb:139:in `log_to_stdout'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/commands/server.rb:78:in `start'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:80:in `block in server'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:75:in `server'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Library/Ruby/Gems/2.0.0/gems/railties-4.2.2/lib/rails/commands.rb:17:in `<top (required)>'
from /Users/abdullahatkaev/the247clinic/bin/rails:8:in `require'
from /Users/abdullahatkaev/the247clinic/bin/rails:8:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `load'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `call'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/client.rb:26:in `run'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/bin/spring:48:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `load'
from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /Users/abdullahatkaev/the247clinic/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
Anybody knows how to fix it?
Maybe i should to do something more then only bundle. I am just starting, sorry if its to easy.
You are missing configuration variable(s) and the pusher initializer cannot read the url, because its missing an url. You see it this line from your backtrace:
from /Users/abdullahatkaev/the247clinic/config/initializers/pusher.rb:1:in `<top (required)>'
Check this file to see what you need exactly. It depends on your project how you can set the url. Either through rails or something like dotenv.

Rails server not working on one project but works on another project

My rails server doesn't work for one project, but DOES work for another project.
For the project that does not work, when I run rails s in my terminal I get the the following output:
=> Booting Thin
=> Rails 4.1.0 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
/Users/christinating/.rvm/gems/ruby-2.1.3/bundler/gems/active_admin-48a8674a4566/lib/active_admin/application.rb:116:in `allow_comments=': `config.allow_comments` is no longer provided in ActiveAdmin 1.x. Use `config.comments` instead. (RuntimeError)
from /Users/christinating/scholarhood/config/initializers/active_admin.rb:104:in `block in <top (required)>'
from /Users/christinating/.rvm/gems/ruby-2.1.3/bundler/gems/active_admin-48a8674a4566/lib/active_admin.rb:71:in `setup'
from /Users/christinating/scholarhood/config/initializers/active_admin.rb:1:in `<top (required)>'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/zeus-0.15.4/lib/zeus/load_tracking.rb:50:in `load'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/zeus-0.15.4/lib/zeus/load_tracking.rb:50:in `load'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/zeus-0.15.4/lib/zeus/load_tracking.rb:43:in `load'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:241:in `block in load'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:232:in `load_dependency'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:241:in `load'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/engine.rb:648:in `block in load_config_initializer'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/activesupport-4.1.0/lib/active_support/notifications.rb:161:in `instrument'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/engine.rb:647:in `load_config_initializer'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/engine.rb:611:in `each'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/engine.rb:611:in `block in <class:Engine>'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/initializable.rb:30:in `run'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/christinating/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
from /Users/christinating/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /Users/christinating/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/tsort.rb:418:in `block (2 levels) in each_strongly_connected_component_from'
from /Users/christinating/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
from /Users/christinating/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/tsort.rb:417:in `block in each_strongly_connected_component_from'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/initializable.rb:44:in `each'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/initializable.rb:44:in `tsort_each_child'
from /Users/christinating/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/tsort.rb:411:in `call'
from /Users/christinating/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/tsort.rb:411:in `each_strongly_connected_component_from'
from /Users/christinating/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /Users/christinating/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/tsort.rb:345:in `each'
from /Users/christinating/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/tsort.rb:345:in `call'
from /Users/christinating/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
from /Users/christinating/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
from /Users/christinating/.rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/application.rb:288:in `initialize!'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/railtie.rb:194:in `public_send'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/railtie.rb:194:in `method_missing'
from /Users/christinating/scholarhood/config/environment.rb:5:in `<top (required)>'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `block in require'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:232:in `load_dependency'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in `require'
from /Users/christinating/scholarhood/config.ru:11:in `block in <main>'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /Users/christinating/scholarhood/config.ru:in `new'
from /Users/christinating/scholarhood/config.ru:in `<main>'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/commands/server.rb:50:in `app'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/commands/server.rb:130:in `log_to_stdout'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/commands/server.rb:67:in `start'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:81:in `block in server'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:76:in `tap'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:76:in `server'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /Users/christinating/.rvm/gems/ruby-2.1.3/gems/railties-4.1.0/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
This project requires version ruby 2.1.3 to work though.
Can anyone please help me?
According to the error message:
config.allow_comments is no longer provided in ActiveAdmin 1.x. Use config.comments instead.
So, you need to edit config/initializers/active_admin.rb and change:
config.allow_comments
to:
config.comments

Learn Ruby on Rails book: email configuration using TextEdit

I was on page 147 (epub) of Kehoe's Learn Ruby on Rails book and copied this code to config/environments/development.rb:
config.assets.debug = true
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: Rails.application.secrets.domain_name,
authentication: "plain",
enable_starttls_auto: true,
user_name: Rails.application.secrets.email_provider_username,
password: Rails.application.secrets.email_provider_password
}
However, after that and trying to run server I get this:
Boruckis-MacBook-Air:learn-rails szymonborucki$ rails s
=> Booting Thin
=> Rails 4.1.4 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
/Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/psych.rb:370:in `parse': (<unknown>): could not find expected ':' while scanning a simple key at line 15 column 1 (Psych::SyntaxError)
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/psych.rb:370:in `parse_stream'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/psych.rb:318:in `parse'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/psych.rb:245:in `load'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/application.rb:325:in `secrets'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/config/environments/development.rb:32:in `block in <top (required)>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/railtie.rb:210:in `instance_eval'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/railtie.rb:210:in `configure'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/config/environments/development.rb:1:in `<top (required)>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `block in require'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/engine.rb:594:in `block (2 levels) in <class:Engine>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/engine.rb:593:in `each'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/engine.rb:593:in `block in <class:Engine>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `run'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:418:in `block (2 levels) in each_strongly_connected_component_from'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:417:in `block in each_strongly_connected_component_from'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:44:in `each'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:44:in `tsort_each_child'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:411:in `call'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:411:in `each_strongly_connected_component_from'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `each'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `call'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/application.rb:300:in `initialize!'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/config/environment.rb:5:in `<top (required)>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `block in require'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/config.ru:3:in `block in <main>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/config.ru:in `new'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/config.ru:in `<main>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/server.rb:50:in `app'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/server.rb:130:in `log_to_stdout'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/server.rb:67:in `start'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:81:in `block in server'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:76:in `tap'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:76:in `server'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands.rb:17:in `<top (required)>'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/bin/rails:8:in `require'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/bin/rails:8:in `<top (required)>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `load'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `call'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/client.rb:26:in `run'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/bin/spring:48:in `<top (required)>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `load'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `<top (required)>'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/bin/spring:16:in `require'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/bin/spring:16:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
I followed the tutorial to the letter, have Ruby 2.1.2 and Rails 4.1.4 installed. What should I do to get through it? I tried using the files from book's GitHub repo but result is the same. Here is the project:
https://github.com/SimonBo/learn-rails.git
The stack trace indicates the failure is in line 32 of config/environments/development.rb.
Try replacing domain: Rails.application.secrets.domain_name with:
domain: "example.com",
You'll need quotes and a comma.
If you get a subsequent failure on line 36 (as you report), replace:
user_name: "my_user_name",
password: "my_password"
You've got a problem with the config/secrets.yml file not set up properly. If your config/secrets.yml file sets the domain value with an environment variable, it's likely your environment variables are not set properly. If you have trouble setting Unix environment variables, you can add credentials directly to the config/secrets.yml file. If you do so, you should not check the file into Git until you’ve deleted the secrets from the file.
Tried it and got this:
$ rails s
=> Booting Thin
=> Rails 4.1.4 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
/Users/szymonborucki/ruby_apps/workspace/learn-rails/config/environments/development.rb:33:in `block in <top (required)>': undefined local variable or method `example' for #<LearnRails::Application:0x007f9183817380> (NameError)
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/railtie.rb:210:in `instance_eval'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/railtie.rb:210:in `configure'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/config/environments/development.rb:1:in `<top (required)>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `block in require'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/engine.rb:594:in `block (2 levels) in <class:Engine>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/engine.rb:593:in `each'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/engine.rb:593:in `block in <class:Engine>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `run'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:418:in `block (2 levels) in each_strongly_connected_component_from'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:417:in `block in each_strongly_connected_component_from'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:44:in `each'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:44:in `tsort_each_child'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:411:in `call'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:411:in `each_strongly_connected_component_from'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `each'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `call'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/application.rb:300:in `initialize!'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/config/environment.rb:5:in `<top (required)>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `block in require'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/config.ru:3:in `block in <main>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/config.ru:in `new'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/config.ru:in `<main>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/server.rb:50:in `app'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/server.rb:130:in `log_to_stdout'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/server.rb:67:in `start'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:81:in `block in server'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:76:in `tap'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:76:in `server'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands.rb:17:in `<top (required)>'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/bin/rails:8:in `require'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/bin/rails:8:in `<top (required)>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `load'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `call'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/client.rb:26:in `run'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/bin/spring:48:in `<top (required)>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `load'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `<top (required)>'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/bin/spring:16:in `require'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/bin/spring:16:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
Then it tried example.com with quotes "" ("example.com") and got this
rails s
=> Booting Thin
=> Rails 4.1.4 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
/Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/psych.rb:370:in `parse': (<unknown>): could not find expected ':' while scanning a simple key at line 15 column 1 (Psych::SyntaxError)
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/psych.rb:370:in `parse_stream'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/psych.rb:318:in `parse'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/psych.rb:245:in `load'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/application.rb:325:in `secrets'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/config/environments/development.rb:36:in `block in <top (required)>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/railtie.rb:210:in `instance_eval'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/railtie.rb:210:in `configure'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/config/environments/development.rb:1:in `<top (required)>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `block in require'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/engine.rb:594:in `block (2 levels) in <class:Engine>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/engine.rb:593:in `each'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/engine.rb:593:in `block in <class:Engine>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `run'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:418:in `block (2 levels) in each_strongly_connected_component_from'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:417:in `block in each_strongly_connected_component_from'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:44:in `each'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:44:in `tsort_each_child'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:411:in `call'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:411:in `each_strongly_connected_component_from'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `each'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `call'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
from /Users/szymonborucki/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/application.rb:300:in `initialize!'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/config/environment.rb:5:in `<top (required)>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `block in require'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/config.ru:3:in `block in <main>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/config.ru:in `new'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/config.ru:in `<main>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/server.rb:50:in `app'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/server.rb:130:in `log_to_stdout'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/server.rb:67:in `start'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:81:in `block in server'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:76:in `tap'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:76:in `server'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/railties-4.1.4/lib/rails/commands.rb:17:in `<top (required)>'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/bin/rails:8:in `require'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/bin/rails:8:in `<top (required)>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `load'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `call'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/client.rb:26:in `run'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/bin/spring:48:in `<top (required)>'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `load'
from /Users/szymonborucki/.rvm/gems/ruby-2.1.2#learn-rails/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `<top (required)>'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/bin/spring:16:in `require'
from /Users/szymonborucki/ruby_apps/workspace/learn-rails/bin/spring:16:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
Do you think it might be something wrong with my rails/ruby installation on my mac? I tried deleting and reinstalling rails and ruby but alway run into the same problem.

Rails Server immediately exists start up

Hi I'm new to Rails and have absolutely no idea why rails server won't work. I have no doubt the answer is in all this code below but I'm completely stuck. Any ideas?
Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
/Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:370:in `parse': (<unknown>): found character that cannot start any token while scanning for the next token at line 14 column 1 (Psych::SyntaxError)
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:370:in `parse_stream'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:318:in `parse'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:245:in `load'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/application.rb:313:in `secrets'
from /Users/user/workspace/learn-rails/config/environments/development.rb:33:in `block in <top (required)>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/railtie.rb:210:in `instance_eval'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/railtie.rb:210:in `configure'
from /Users/user/workspace/learn-rails/config/environments/development.rb:1:in `<top (required)>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `require'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `block in require'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:232:in `load_dependency'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `require'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/engine.rb:594:in `block (2 levels) in <class:Engine>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/engine.rb:593:in `each'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/engine.rb:593:in `block in <class:Engine>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/initializable.rb:30:in `run'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:418:in `block (2 levels) in each_strongly_connected_component_from'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:417:in `block in each_strongly_connected_component_from'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/initializable.rb:44:in `each'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/initializable.rb:44:in `tsort_each_child'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:411:in `call'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:411:in `each_strongly_connected_component_from'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:345:in `each'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:345:in `call'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
from /Users/user/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/application.rb:288:in `initialize!'
from /Users/user/workspace/learn-rails/config/environment.rb:5:in `<top (required)>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `require'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `block in require'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:232:in `load_dependency'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in `require'
from /Users/user/workspace/learn-rails/config.ru:3:in `block in <main>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /Users/user/workspace/learn-rails/config.ru:in `new'
from /Users/user/workspace/learn-rails/config.ru:in `<main>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/commands/server.rb:50:in `app'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/commands/server.rb:130:in `log_to_stdout'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/commands/server.rb:67:in `start'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:81:in `block in server'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:76:in `tap'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:76:in `server'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/railties-4.1.1/lib/rails/commands.rb:17:in `<top (required)>'
from /Users/user/workspace/learn-rails/bin/rails:8:in `require'
from /Users/user/workspace/learn-rails/bin/rails:8:in `<top (required)>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `load'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.1.3/lib/spring/client/rails.rb:27:in `call'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.1.3/lib/spring/client/command.rb:7:in `call'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.1.3/lib/spring/client.rb:26:in `run'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.1.3/bin/spring:48:in `<top (required)>'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `load'
from /Users/user/.rvm/gems/ruby-2.1.1/gems/spring-1.1.3/lib/spring/binstub.rb:11:in `<top (required)>'
from /Users/user/workspace/learn-rails/bin/spring:16:in `require'
from /Users/user/workspace/learn-rails/bin/spring:16:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
The config/secrets.yml file is invalid.
YAML is whitespace sensitive so make sure to check that there are no leading whitespaces. If you aren't sure if your YAML file is valid, try pasting it into this yaml validator http://yamllint.com/ to see if its valid.
I solved my problem restoring the last version of Gemfile

Resources