开发者

How do you generate a new Rakefile for a Rails app that has "lost" its Rakefile?

Somehow my Rails开发者_JS百科 app doesn't have a Rakefile. I don't know if it lost it or what.

So when I run:

rake gems:refresh_specs

I get:

No Rakefile found

How do I generate a new Rakefile to refresh my gem specs?


You can call rails again to re-generate your application. To avoid overwriting existing files use the -s or --skip option. So from the directory above your rails app:

rails my_app -s

It will list the changes it makes which should just be your missing rake file unless you've been a bit keen to delete other things.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜