{"id":9979,"date":"2024-03-28T04:27:22","date_gmt":"2024-03-28T04:27:22","guid":{"rendered":"https:\/\/www.bacancytechnology.com\/qanda\/?p=9979"},"modified":"2024-03-28T04:27:22","modified_gmt":"2024-03-28T04:27:22","slug":"start-rails-server","status":"publish","type":"post","link":"https:\/\/www.bacancytechnology.com\/qanda\/ruby-on-rails\/start-rails-server","title":{"rendered":"How to Start Rails Server?"},"content":{"rendered":"<p>The output you&#8217;re seeing when you type rails script\/server suggests that you&#8217;re actually running the rails new command, which is used to generate a new Rails application.<\/p>\n<p>In Rails 2.3.2, the command to start the server is script\/server, not rails script\/server. So, to start the server, you should navigate to your Rails application directory and run:<\/p>\n<p><code>.\/script\/server<\/code><\/p>\n<p>This command will start the Rails development server, allowing you to access your application in the browser.<\/p>\n<p>The script directory contains various scripts used for running tasks related to your Rails application, including starting the server (server script).<\/p>\n<p>To summarize, ensure you&#8217;re running the correct command (script\/server) to start the server in your Rails 2.3.2 application, and make sure you&#8217;re in the correct directory containing your Rails application files.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The output you&#8217;re seeing when you type rails script\/server suggests that you&#8217;re actually running the rails new command, which is used to generate a new Rails application. In Rails 2.3.2, the command to start the server is script\/server, not rails script\/server. So, to start the server, you should navigate to your Rails application directory and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":9981,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-9979","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ruby-on-rails"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts\/9979"}],"collection":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/comments?post=9979"}],"version-history":[{"count":2,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts\/9979\/revisions"}],"predecessor-version":[{"id":9983,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts\/9979\/revisions\/9983"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/media\/9981"}],"wp:attachment":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/media?parent=9979"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/categories?post=9979"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/tags?post=9979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}