Skip to content

Installer should work in CI (noninteractive) environment #709

Description

@la-ruby

It would be nice if this worked in CI environment / github actions:

./bin/rails stimulus_reflex:install
bin/rails aborted!
NoMethodError: undefined method `chomp' for nil (NoMethodError)
      input = Rails.env.test? ? "tmp/app/javascript" : $stdin.gets.chomp
                                                                  ^^^^^^
Tasks: TOP => stimulus_reflex:install
(See full trace by running task with --trace)
✨ Installing StimulusReflex and CableReady ✨
If you have any setup issues, please consult https://docs.stimulusreflex.com/hello-world/setup
or get help on Discord: https://discord.gg/stimulus-reflex. We are here for you. 💙
We recommend running git commit before proceeding. A diff will be generated at the end.
Where do JavaScript files live in your app? Our best guess is: app/javascript 🤔
Press enter to accept this, or type a different path.
> 
Error: Process completed with exit code 1.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions