百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

ruby-on-whales

> 编程语言
开源

Ruby on Whales 示例和模板

320 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Ruby on Whales 示例和模板

Ruby on Whales

This repository contains an example dockerized Ruby on Rails development configuration based on the Ruby on Whales blog post.

This project is built by Evil Martians, an American design and engineering consultancy for developer tools, AI, and cybersecurity startups.

Example configuration

See the example folder.

Interactive generator

We also provide an interactive generator for Rails apps to quickly setup a dockerized environment for your app. Just run the following command and follow the instructions:

bash
bundle exec rails app:template LOCATION='https://railsbytes.com/script/z5OsoB'

You can also run it via Ruby Bytes (so you can dockerize a Rails app without installing it on your host machine):

bash
rbytes install https://railsbytes.com/script/z5OsoB

Tips & Tricks

Pry / IRB history support

To persiste Pry or IRB history, you must configure them to store it in the history volume.

For IRB, add the following to your .irbrc file:

ruby
IRB.conf[:SAVE_HISTORY] = 10_000 # Maximum number of lines to save in history
IRB.conf[:HISTORY_FILE] = ENV.fetch("IRB_HISTFILE", "#{ENV["HOME"]}/.irb-history")

Then, in the compose.yml, specify the IRB_HISTFILE environment variable:

yaml
x-backend:
  environment:
    # ...
    IRB_HISTFILE: /usr/local/hist/.irb_history

Similarly, for Pry, add the following to your .pryrc file:

ruby
Pry.config.history_save = true
Pry.config.history_file = ENV.fetch("PRY_HISTFILE", "#{ENV["HOME"]}/.pry-history")

Then, in the compose.yml, specify the PRY_HISTFILE environment variable:

yaml
x-backend:
  environment:
    # ...
    PRY_HISTFILE: /usr/local/hist/.pry_history

See also

  • System of a test (setting up system tests with Docker)
  • Vite-alizing Rails (more about using Vite with Rails and Docker)
  • Faster RuboCop runs for Rails
  • Terraforming Rails

License

The code is available as open source under the terms of the MIT License.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ruby

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言