Hello people,
i’ve created a Digital Ocean Rails Applictaion in my droplet, and did basic commands like:
rails generate scaffold comment name:string comment:string
rake db:migrate
And i got everything normal. (in /home/rails) == CreateComments: migrating ================================================= – create_table(:comments) -> 0.0083s == CreateComments: migrated (0.0089s) ========================================
But when i try to access the page, that should be http://162.243.104.62/comments, i get a message: “The page you were looking for doesn’t exist.”
Besides not find the page, the error should be something from Rails
I’m developing rails, and need some help here I develop normally on my Mavericks, and i have my project on bitbucket I wanna put it on my DigitalOcean droplet
I get this message from production.log
I, [2014-01-06T17:04:34.412795 #811] INFO – : Started GET “/comments” for 200.137.163.25 at 2014-01-06 17:04:34 +0000
F, [2014-01-06T17:04:34.415689 #811] FATAL – :
ActionController::RoutingError (No route matches [GET] “/comments”):
actionpack (4.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:21:in call' actionpack (4.0.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in
call’
railties (4.0.2) lib/rails/rack/logger.rb:38:in call_app' railties (4.0.2) lib/rails/rack/logger.rb:20:in
block in call’
activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in block in tagged' activesupport (4.0.2) lib/active_support/tagged_logging.rb:25:in
tagged’
activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in tagged' railties (4.0.2) lib/rails/rack/logger.rb:20:in
call’
actionpack (4.0.2) lib/action_dispatch/middleware/request_id.rb:21:in call' rack (1.5.2) lib/rack/methodoverride.rb:21:in
call’
rack (1.5.2) lib/rack/runtime.rb:17:in call' activesupport (4.0.2) lib/active_support/cache/strategy/local_cache.rb:83:in
call’
rack (1.5.2) lib/rack/sendfile.rb:112:in call' railties (4.0.2) lib/rails/engine.rb:511:in
call’
railties (4.0.2) lib/rails/application.rb:97:in call' unicorn (4.7.0) lib/unicorn/http_server.rb:580:in
process_client’
unicorn (4.7.0) lib/unicorn/http_server.rb:660:in worker_loop' unicorn (4.7.0) lib/unicorn/http_server.rb:527:in
spawn_missing_workers’
unicorn (4.7.0) lib/unicorn/http_server.rb:153:in start' unicorn (4.7.0) bin/unicorn:126:in
<top (required)>’
/usr/local/rvm/gems/ruby-2.0.0-p353/bin/unicorn:23:in load' /usr/local/rvm/gems/ruby-2.0.0-p353/bin/unicorn:23:in
<main>’
/usr/local/rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in eval' /usr/local/rvm/gems/ruby-2.0.0-p353/bin/ruby_executable_hooks:15:in
<main>’
Any help? Thanks in advance
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
@Yulli from DigitalOcean chat helped me. <br> <br>RAILS_ENV=production rake db:migrate
config/routes.db <br>http://pastebin.com/GCMS5u8q