By celianeabreu
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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
@Yulli from DigitalOcean chat helped me. <br> <br>RAILS_ENV=production rake db:migrate
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.