Rails

Framework
Rails
Category
Full Stack
Publisher
Jetify
{
  "packages": {
    "ruby":    "3.3",
    "bundler": "2.5",
    "nodejs":  "21",
    "yarn":    "1.22",
    "curl":    "latest",
    "sqlite":  "latest"
  },
  "shell": {
    "init_hook": [
      "gem install rails",
      "./blog/bin/bundle install",
      "./blog/bin/rails -f ./blog/Rakefile db:prepare"
    ],
    "scripts": {
      "run_test":     ["./blog/bin/rails test"],
      "start_server": ["./blog/bin/rails server"]
    }
  }
}

Rails Example in Devbox

This example demonstrates how to setup a simple Rails application. It makes use of the Ruby Plugin, and installs SQLite to use as a database.

Open In Devspace

How To Run

Run devbox shell to install rails and prepare the project.

Once the shell starts, you can start the rails app by running:

cd blog
bin/rails server

How to Recreate this Example

  1. Create a new Devbox project with devbox create --template rails

  2. Add the packages using

    devbox install
  3. Run devbox shell, which will install the rails CLI with gem install rails

  4. Create your Rails app by running the following in your Devbox Shell

    rails new blog

Related Docs

README.md

Level up your dev environment

No need to switch your style. Devbox works with any coding language, so you can get results as you write.
PREPARE FOR LAUNCH

Plans for teams of any size

Jetify Cloud offers pricing plans for Solo Developers to Large Enterprises, and everything in between. All plans include free credits, and you are only billed for what you use. Need something custom? Contact our team and we can help.
YOUR INPUT COUNTS

Join the community

Discuss ideas, uses and builds with the Jetify team and others.