Jekyll
This example demonstrates how to create and run a Jekyll blog in Devbox. It makes use of the Ruby Plugin to configure and setup your project.
How to Run
- Install Devbox
- Run
devbox shell
to install your packages and run the init hook - In the root directory, run
devbox run generate
to install and package the project with bundler - In the root directory, run
devbox run server
to start the server. You can access the Jekyll example atlocalhost:4000
How to Recreate this Example
- Install Devbox
- In a new directory, run
devbox init
to create an empty config - Run
devbox add ruby_3_1 bundler
to add Ruby and Bundler to your packages - Add
"gem install jekyll --version \"~> 3.9.2\""
to your init hook. This will install the Jekyll gem in your local project. - Start your
devbox shell
, then runjekyll new myblog
to create the starter project. - From here you can install the project using Bundler, and start the server using
jekyll serve
. See the scripts in this example for more details.