开发者

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

开发者 https://www.devze.com 2023-01-15 08:31 出处:网络
Somehow my Rails开发者_JS百科 app doesn\'t have a Rakefile. I don\'t know if it lost it or what.

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

精彩评论

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