Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When running the setup getting dotenv = StringIO.new(dotenv_contents) error #3

Open
ademdc opened this issue Jul 19, 2024 · 0 comments

Comments

@ademdc
Copy link

ademdc commented Jul 19, 2024

Hey, I installed the gem per instruction. I have a .env.production file locally. But when I run cap production dotenv:setup I get the following error:

Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
rvm 1.29.12-next (master) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
system
ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-linux]
#<Thread:0x00000001064965e0 /Users/ademdinarevic/.rvm/gems/ruby-3.2.0/gems/sshkit-1.23.0/lib/sshkit/runners/parallel.rb:10 run> terminated with exception (report_on_exception is true):
/Users/ademdinarevic/.rvm/gems/ruby-3.2.0/gems/sshkit-1.23.0/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute': Exception while executing as [email protected]: no implicit conversion of nil into String (SSHKit::Runner::ExecuteError)
	from /Users/ademdinarevic/.rvm/gems/ruby-3.2.0/gems/sshkit-1.23.0/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute'
/Users/ademdinarevic/.rvm/gems/ruby-3.2.0/gems/capistrano-dotenv-0.0.5/lib/capistrano/dotenv/tasks.cap:38:in `initialize': no implicit conversion of nil into String (TypeError)

      dotenv = StringIO.new(dotenv_contents)
                            ^^^^^^^^^^^^^^^
	from /Users/ademdinarevic/.rvm/gems/ruby-3.2.0/gems/capistrano-dotenv-0.0.5/lib/capistrano/dotenv/tasks.cap:38:in `new'
	from /Users/ademdinarevic/.rvm/gems/ruby-3.2.0/gems/capistrano-dotenv-0.0.5/lib/capistrano/dotenv/tasks.cap:38:in `block (3 levels) in <top (required)>'
	from /Users/ademdinarevic/.rvm/gems/ruby-3.2.0/gems/sshkit-1.23.0/lib/sshkit/backends/abstract.rb:31:in `instance_exec'
	from /Users/ademdinarevic/.rvm/gems/ruby-3.2.0/gems/sshkit-1.23.0/lib/sshkit/backends/abstract.rb:31:in `run'
	from /Users/ademdinarevic/.rvm/gems/ruby-3.2.0/gems/sshkit-1.23.0/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: no implicit conversion of nil into String (SSHKit::Runner::ExecuteError)

Any ideas here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant