ruby on rails常用命令mark

1. RAILS_ENV=production rails s启动服务器

2. RAILS_ENV=production rails generate controller ProductionArray

3. RAILS_ENV=production rails generate migrations CreateProductionArray

4. RAILS_ENV=production rake db:migrate version=201602062117

5. RAILS_ENV=production rake db:rollback STEP=n

6. RAILS_ENV=production rake db:migrate:down (version=nnn)

7. RAILS_ENV=production rake assets:precompile

 

posted @ 2016-02-01 15:05  Sophiawow  Views(112)  Comments(0Edit  收藏