如何更改使用“rails new"命令创建的默认 gemfile? [英] How do I change the default gemfile created with 'rails new' command?

查看:49
本文介绍了如何更改使用“rails new"命令创建的默认 gemfile?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近遇到了一个问题,我必须将以下内容添加到我的 gemfile 中:

I have recently experienced an issue where I must add the following to my gemfile:

gem 'execjs'
gem 'therubyracer'

我必须这样做以避免在启动 rails 服务器时发生 javascript 运行时错误.我希望将此修改添加到使用 rails new 命令创建的所有新 gemfile 中.

I must do this to avoid a javascript runtime error that occurs when starting the rails server. I would like to have this modification added to all new gemfiles created with the rails new command.

推荐答案

您正在寻找 应用程序模板.

这篇关于如何更改使用“rails new"命令创建的默认 gemfile?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆