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.
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
-
Create a new Devbox project with
devbox create --template rails
-
Add the packages using
devbox install
-
Run
devbox shell
, which will install the rails CLI withgem install rails
-
Create your Rails app by running the following in your Devbox Shell
rails new blog