[{"data":1,"prerenderedAt":114},["ShallowReactive",2],{"seo-verification":3,"marketplace-app-en-rails-stack":6},{"google":4,"bing":5},"EycwPY2XMyTkVzas3n1ygeNJFGAH513qrMjfDljzsMQ","",{"slug":7,"slugs":8,"categorySlugs":9,"name":13,"description":14,"phase":15,"unavailableReason":16,"docsUrl":17,"logo":18,"github":18,"tagline":19,"longDescription":20,"features":21,"useCases":29,"steps":39,"faq":55,"specs":71,"compatibleOs":81,"relatedApps":82,"relatedPosts":107,"category":111},"rails-stack",{"fr":7,"en":7,"ar":7},{"fr":10,"en":11,"ar":12},"developpement","development","التطوير","Rails Stack","Ruby 3.2, Puma, Nginx and PostgreSQL preconfigured. Deploy your Ruby on Rails application to production in minutes.",2,"awaiting_qa","https:\u002F\u002Fservorbit.com\u002Fblog\u002Fdeploying-a-ruby-on-rails-application-on-a-vps",null,"Production-ready Ruby environment — Rails, Puma, Nginx, PostgreSQL.","Rails Stack provisions your VPS with everything a Ruby on Rails application needs in production: Ruby 3.2 from Ubuntu 24.04 packages, Bundler, Puma as the application server, Nginx as the reverse proxy, PostgreSQL as the database, and Redis for caching and background jobs.\n\nRails 7 and Rails 8 both run without changes. Propshaft and importmap are supported out of the box for asset management without a complex Node.js build pipeline. Sidekiq or Solid Queue can be added to the same VPS to handle background jobs — all managed by systemd, no container overhead.\n\nThe stack targets developers who want to self-host their Rails SaaS or internal tool on a predictable fixed-cost VPS rather than paying per dyno. You control the Puma thread count, the Sidekiq concurrency, the PostgreSQL connection pool — and you keep the full stack visible and auditable.",[22,23,24,25,26,27,28],"Ruby 3.2 from Ubuntu 24.04 packages — stable release ready for Rails 7 and Rails 8, installed from official repos without PPA delays.","Bundler pre-installed — run `bundle install` after cloning your repository and all gems are ready.","Puma application server — multi-threaded WSGI-equivalent for Ruby; configure WEB_CONCURRENCY and RAILS_MAX_THREADS to match your VPS RAM.","Nginx reverse proxy — serves public\u002Fassets directly, handles TLS termination via Let's Encrypt, passes dynamic requests to Puma's Unix socket.","PostgreSQL preconfigured — the recommended production database for Rails; JSONB, full-text search and the pg gem work out of the box.","Redis pre-installed — enables Sidekiq background workers, Rails.cache, and Action Cable without any additional setup.","Sidekiq and Solid Queue ready — add either to your Gemfile and create a systemd unit; both work on the same VPS alongside Puma.",[30,33,36],{"title":31,"body":32},"Rails SaaS self-hosted","Clone your Rails repository into \u002Fvar\u002Fwww\u002Fyour-app, create a .env file with DATABASE_URL, REDIS_URL and SECRET_KEY_BASE, run `bundle install`, `db:migrate` and `assets:precompile`, then point Puma at a Unix socket and Nginx at that socket — your SaaS is live on a fixed-cost VPS.",{"title":34,"body":35},"API backend with Active Record","Rails makes an excellent JSON API server — Active Record, strong params and serializers are production-ready. Deploy the API mode stack (no asset pipeline) on a 1 GB VPS; Nginx rate-limits and handles CORS headers before requests reach Puma.",{"title":37,"body":38},"Background job processing with Sidekiq","Rails Stack includes Redis, so adding Sidekiq is a Gemfile entry and a systemd unit away. Run email delivery, image processing and report generation in background workers on the same VPS — no separate dyno, no extra billing.",[40,43,46,49,52],{"title":41,"body":42},"Order a ServOrbit VPS","Choose 2 GB RAM on Ubuntu 24.04 as a minimum for a single Rails application with PostgreSQL. Use 4 GB if you plan to run Sidekiq workers or a memory-intensive Redis cache. The Rails Stack template is available in the marketplace order form.",{"title":44,"body":45},"Deploy from the marketplace","Go to Marketplace → Development → Rails Stack and click Deploy. The provisioning script installs Ruby 3.2, Bundler, Rails, Puma, Nginx, PostgreSQL and Redis — no manual SSH session required for the base setup.",{"title":47,"body":48},"Clone your project and configure","SSH into the VPS, clone your repository into \u002Fvar\u002Fwww\u002Fyour-app, run `gem install bundler` if needed, then `bundle install --without development test`. Create a .env file or export SECRET_KEY_BASE, DATABASE_URL and RAILS_ENV=production.",{"title":50,"body":51},"Run migrations and precompile assets","Activate your environment and run `RAILS_ENV=production bin\u002Frails db:migrate` then `RAILS_ENV=production bin\u002Frails assets:precompile`. Nginx is already configured to serve public\u002Fassets and public\u002Fpacks directly.",{"title":53,"body":54},"Start Puma and enable HTTPS","Start Puma: `bundle exec puma -C config\u002Fpuma.rb`. Configure a systemd unit to keep it alive after reboots. Run `certbot --nginx -d your-domain.com` to get a free Let's Encrypt certificate — Nginx is already installed and running.",[56,59,62,65,68],{"q":57,"a":58},"Which Ruby version is installed?","Ruby 3.2 from Ubuntu 24.04 official packages. Rails 7 and Rails 8 both run on 3.2 without any compatibility issue. If you need a different version, install rbenv or asdf alongside the system Ruby and manage multiple versions per project.",{"q":60,"a":61},"Can I use MySQL instead of PostgreSQL?","Rails Stack installs PostgreSQL by default, the recommended Rails production database. You can install MariaDB or MySQL alongside it, but PostgreSQL is the better choice for Rails: JSONB, full-text search, and the Active Record adapter are all first-class.",{"q":63,"a":64},"How do I add Sidekiq and Redis?","Redis is already installed by the template. Add `gem 'sidekiq'` to your Gemfile, run `bundle install`, create config\u002Fsidekiq.yml, and set up a systemd unit that runs `bundle exec sidekiq -e production`. Rails Stack is designed to host both Puma and Sidekiq on the same VPS.",{"q":66,"a":67},"What is the minimum recommended RAM?","2 GB for a single Rails application with PostgreSQL. Add 1–2 GB if you run Sidekiq workers. Puma workers use approximately 200–400 MB each in Rails; start with 2 workers and adjust based on observed memory usage.",{"q":69,"a":70},"Can I deploy multiple Rails apps on the same VPS?","Yes. Create one Puma Unix socket per project (configured in config\u002Fpuma.rb), one Nginx server block per domain, and one systemd unit per Puma process. Each app uses its own PostgreSQL database and Redis namespace — they do not interfere.",{"ram":72,"cpu":73,"stack":74},"2 GB","1 vCPU",[75,76,77,78,79,80],"Ruby 3.2","Puma","Nginx","PostgreSQL","Redis","Bundler",[],[83,91,96,101],{"name":84,"slug":85,"categorySlug":11,"categoryName":86,"categoryColor":87,"logo":88,"tagline":89,"description":90},"Laravel Stack","laravel-stack","Development","text-warning bg-warning\u002F10","https:\u002F\u002Fcdn.simpleicons.org\u002Flaravel","PHP-FPM, Nginx, PostgreSQL, Redis and Supervisor — a production-ready Laravel stack from the moment you order.","PHP-FPM, Nginx, PostgreSQL, Redis and Supervisor preconfigured. Deploy Laravel to production with no initial configuration.",{"name":92,"slug":93,"categorySlug":11,"categoryName":86,"categoryColor":87,"logo":18,"tagline":94,"description":95},"Django Stack","django","Production-ready Python environment — Django, Gunicorn, Nginx, PostgreSQL 16.","Python 3.12, Gunicorn, Nginx and PostgreSQL 16 preconfigured. Deploy your Django application to production in minutes, no manual server setup.",{"name":97,"slug":98,"categorySlug":11,"categoryName":86,"categoryColor":87,"logo":18,"tagline":99,"description":100},"FastAPI Stack","fastapi","Production-ready Python environment — FastAPI, Uvicorn, Gunicorn, Nginx, PostgreSQL 16.","Python 3.12, Uvicorn, Gunicorn, Nginx and PostgreSQL 16 preconfigured. Deploy your FastAPI API to production in minutes.",{"name":102,"slug":103,"categorySlug":11,"categoryName":86,"categoryColor":87,"logo":104,"tagline":105,"description":106},"Node.js Stack","nodejs-stack","https:\u002F\u002Fcdn.simpleicons.org\u002Fnodedotjs","Node.js, PM2, Nginx and a database — a production environment for your JavaScript APIs and apps.","Node.js with PM2, an Nginx reverse proxy and a database. Your JavaScript APIs and applications ready to take traffic.",[108,109,110],"deployer-rails-vps","deployer-laravel-vps","deployer-django-vps",{"key":10,"slug":11,"name":86,"objective":112,"icon":113,"color":87},"Kick off a software project quickly.","dev",1787744343590]