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 Devbox.sh

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

Checkout the Devbox and Launchpad open-source codebases on Github. Feature requests are always welcome.
Try Devbox Cloud
YOUR INPUT COUNTS

Join the community

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