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

rails-new

> 编程语言
开源

在未安装 Ruby 的情况下创建 Rails 项目

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

工具介绍

在未安装 Ruby 的情况下创建 Rails 项目

You can use this repository to generate a new Rails application without having to install Ruby on your machine.

It works by using Docker to generate the Rails application for you. Docker takes care of installing the right Ruby and Rails versions for you, so you don't have to worry about it.

Prerequisites

You need to have Docker installed on your machine. You can find instructions on how to install Docker on your machine here.

On Linux, your user needs to be a member of the docker group. rails-new does not work with sudo. You can find instructions on this here

Installation

Go to the latest release and download the executable for your platform (not the source code). For example, on M1 macOS this would be rails-new-aarch64-apple-darwin.tar.gz. Once the download is complete, unzip the .tar.gz file, which will create the rails-new executable. Move the executable into your path so that it is ready to run from the command line.

Usage

To generate a new Rails application, you can run the following command:

bash
rails-new myapp

Or with options:

bash
rails-new myapp --main

The first time you attempt to use the executable in macOS you may see a message like this:

"rails-new" can’t be opened because Apple cannot check it for malicious software

In that case, please go to System Settings → Privacy & Security. You'll see a section mentioning "rails-new" with a button labeled "Allow Anyway" that you have to click.

The list of available options is found in the Rails guides.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

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

> 标签

Rust

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

> 工具信息

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

> 相关工具

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