如何创建 Edge rails 应用程序? [英] How to create Edge rails application?

查看:43
本文介绍了如何创建 Edge rails 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有最新的 rails 源代码克隆.

I have latest clone for rails source code.

我想在 rails latest commit 的帮助下创建应用程序.我不会在生产中使用这些应用程序.只是为了实验.

I want to create apps with the help of rails latest commit. I am not going to use those apps in production. Just for experimentation.

我该怎么做?

推荐答案

我在 Github 上发布了一个要点来说明如何创建一个使用 EdgeRails 的 Rails 应用程序(目前将成为 Rails 4 版本).它的要点(没有双关语意)是你这样做:

I put up a gist on Github for how to create a Rails app using EdgeRails (currently what is to become the Rails 4 release). The gist of it (no pun intended) is that you do this:

git clone https://github.com/rails/rails.git
rails/railties/bin/rails new myapp --edge

这将基于当前 EdgeRails 创建一个新的应用程序框架,并将 Gemfile 指向 Github 上的 Rails.如果您想将 Gemfile 指向您的本地结帐,请使用 --dev 选项(例如试验对 Rails 的更改):

This will create a new app skeleton based on current EdgeRails and it will point the Gemfile to Rails on Github. If you would like to point the Gemfile to your local checkout instead, use the --dev option (for example to experiment with changes to Rails):

rails/railties/bin/rails new myapp --dev

这篇关于如何创建 Edge rails 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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