---
title: "rails命令总结"
author: "yangbinfc"
date: "2011-03-11T14:07:00Z"
tags: []
slug: "rails"
draft: false
lastmod: "2012-11-04T17:47:32Z"
id: 1715343
url: "https://yangbinfc.iteye.com/blog/1715343"
---

**rails3： rails2**

rails new demo -d mysql rails --database=mysql projectName 生成基于mysql数据库的项目

```
rails new xxx -JT

-d


  mysql


-T, [


--skip-test-unit]

# Skip Test::Unit files




-J, [


--skip-prototype]

# Skip Prototype files






Rails.env  :查看当前环境：是development 还是product
```