rails-templates icon indicating copy to clipboard operation
rails-templates copied to clipboard

Using docker addon param actually causes that the dockerized app files are not installed

Open caherrerapa opened this issue 4 years ago • 3 comments

  1. Create a project from the template using the add on parameter as docker
  2. The project will not have any related docker files

It seems it works in the opposite way as setting the addon causes it's not used. A bit counterintuitive.

caherrerapa avatar Aug 18 '20 05:08 caherrerapa

Hi @caherrerapa first of all, currently the template doesn't support choosing the addon on the new project process, like rails new test_template -m rails-templates/template.rb ADDON=docker, so on the new project process, the user has to go through all add-ons. Refer https://github.com/nimblehq/rails-templates#use-the-template.

andyduong1920 avatar Oct 08 '20 10:10 andyduong1920

I also try to create a new project with the ADDON option, and it seems the template work as expected.

https://drive.google.com/file/d/1fzEgsCT-FrFM32wcUtsc1aptIU0OUkGQ/view?usp=sharing

But we don't recommend to do that because when we would like to generate a new project from the template, the user has to follow the template instead of pre-selecting Addon.

andyduong1920 avatar Oct 08 '20 10:10 andyduong1920

While following the template, the user will have the option to choose to apply the addon or not, for example, the PhraseApp addon https://github.com/nimblehq/rails-templates/pull/231

andyduong1920 avatar Oct 08 '20 11:10 andyduong1920