开发者

How to create a project template for Ruby on Rails projects?

开发者 https://www.devze.com 2023-01-02 11:38 出处:网络
When I build Rails applications I find myself doing the same things over and over again.This includes adding 开发者_开发知识库the same gems/plugins, configuration info and custom initializers, rake ta

When I build Rails applications I find myself doing the same things over and over again. This includes adding 开发者_开发知识库the same gems/plugins, configuration info and custom initializers, rake tasks etc... etc....

This can't be a good thing.

So, is there a way to package all this repetitive code into some sort of project template ... so that I can do a "rails myapp" and have everything good to go from there?

Btw, running 2.3.5 if that matters :)

thanks


App templates is probably the feature you are looking for.


Many people just create the "template" and then commit it to a repository, possibly on GitHub, for easy access later. I personally find that this works really well.

0

精彩评论

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