{"id":9215,"date":"2024-01-08T10:35:15","date_gmt":"2024-01-08T10:35:15","guid":{"rendered":"https:\/\/www.bacancytechnology.com\/qanda\/?p=9215"},"modified":"2024-01-08T11:17:30","modified_gmt":"2024-01-08T11:17:30","slug":"deploy-ruby-on-rails-app-with-railway-app","status":"publish","type":"post","link":"https:\/\/www.bacancytechnology.com\/qanda\/ruby-on-rails\/deploy-ruby-on-rails-app-with-railway-app","title":{"rendered":"Deploy Ruby on Rails App with railway.app"},"content":{"rendered":"<h3>Deploying Redis<\/h3>\n<ol>\n<li>Go to your project and create a new service.<\/li>\n<li>Type \u201cRedis\u201d in the search bar and choose \u201cAdd Redis\u201d.<\/li>\n<\/ol>\n<p>that\u2019s it. The Redis service is ready.<\/p>\n<h3>Deploying Sidekiq<\/h3>\n<ol>\n<li>Again &#8211; go to your Railway project and create a new \u201cGitHub Repo\u201d service. Go through the GitHub configuration process and select your Rails repo. <\/li>\n<li>In the settings set the service name to Sidekiq. <\/li>\n<li>Go to your codebase, open config\/credentials\/production.key and copy the value of the file. <strong>Notice: Never share it with anybody!<\/strong> <\/li>\n<li>Click on the created Sidekiq service, and go to Variables. Set the following environment variables: <code>RAILS_ENV=production<br \/>\n\t\tRAILS_MASTER_KEY=<the value from the step 3><\/code><\/li>\n<li>Go to settings tab and set the startup command to bundle exec sidekiq. <\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Deploying Redis Go to your project and create a new service. Type \u201cRedis\u201d in the search bar and choose \u201cAdd Redis\u201d. that\u2019s it. The Redis service is ready. Deploying Sidekiq Again &#8211; go to your Railway project and create a new \u201cGitHub Repo\u201d service. Go through the GitHub configuration process and select your Rails repo. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":9216,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-9215","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\/9215"}],"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=9215"}],"version-history":[{"count":4,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts\/9215\/revisions"}],"predecessor-version":[{"id":9221,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/posts\/9215\/revisions\/9221"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/media\/9216"}],"wp:attachment":[{"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/media?parent=9215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/categories?post=9215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bacancytechnology.com\/qanda\/wp-json\/wp\/v2\/tags?post=9215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}