avo-hq / avo

Build Ruby on Rails apps 10x faster
https://avohq.io
Other
1.48k stars 230 forks source link

Installing tailwind missed adding a newline to my Procfile.dev #3187

Closed cmaxw closed 6 days ago

cmaxw commented 2 weeks ago

Describe the bug

I ran bin/rails generate avo:tailwindcss:install on the command line. When I tried to run bin/dev on my app, I got errors on the previous line in the Procfile because it appended avo_css: yarn avo:tailwindcss --watch to the last line instead of adding it on its own line.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Run bin/rails generate avo:tailwindcss:install
  2. Run bin/dev
  3. Watch it fail if you had anything else in the Procfile.

Expected behavior & Actual behavior

It should launch the app.

System configuration

Avo version: 3.11.3

Rails version: 7.2.0

Ruby version: 3.3.3 License type:

Are you using Avo monkey patches, overriding views or view components?

Screenshots or screen recordings

Additional context

Impact

Urgency

adrianthedev commented 2 weeks ago

Got it! We should probably add a \n or something similar to the generator. Thanks for reporting it!

cmaxw commented 2 weeks ago

I could probably do a PR...

I did another one for a tailwind issue I ran into.

Paul-Bob commented 6 days ago

Thank you @cmaxw! Closing as fixed by https://github.com/avo-hq/avo/pull/3189