Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 304
wgpubs Avatar asked Jun 06 '26 06:06

wgpubs


2 Answers

App templates is probably the feature you are looking for.

like image 176
Jakub Hampl Avatar answered Jun 08 '26 20:06

Jakub Hampl


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.

like image 28
thomasfedb Avatar answered Jun 08 '26 18:06

thomasfedb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!