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

Can I restore-from production TO a review app? #205

Open
gap777 opened this issue Jul 26, 2023 · 0 comments
Open

Can I restore-from production TO a review app? #205

gap777 opened this issue Jul 26, 2023 · 0 comments

Comments

@gap777
Copy link

gap777 commented Jul 26, 2023

Help us track down and resolve parity problems faster with this template.

What command did you execute?

be pr_app 269 restore-from production

What did you expect to happen?

Magically, for the PR to be used to lookup a branch, and a branch to be used to lookup a review app, and for parity to
restore the DB on that review app from production's last backup.

What actually happened?

/mypath/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/parity-3.5.0/lib/parity/heroku_app_name.rb:11:in `to_s': undefined method `gsub' for nil:NilClass (NoMethodError)

        gsub(/(\s|=)+/, "")
        ^^^^
	from /Users/gap/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/parity-3.5.0/lib/parity/environment.rb:130:in `heroku_app_name'
	from /Users/gap/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/parity-3.5.0/lib/parity/environment.rb:100:in `restore_confirmation_argument'
	from /Users/gap/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/parity-3.5.0/lib/parity/environment.rb:95:in `additional_restore_arguments'
	from /Users/gap/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/parity-3.5.0/lib/parity/environment.rb:74:in `restore'
	from /Users/gap/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/parity-3.5.0/lib/parity/environment.rb:24:in `run_command'
	from /Users/gap/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/parity-3.5.0/lib/parity/environment.rb:13:in `run'
	from /Users/gap/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/parity-3.5.0/bin/pr_app:18:in `<top (required)>'
	from /Users/gap/.rbenv/versions/3.2.2/bin/pr_app:25:in `load'
	....

Alternatively, I tried creating a separate remote for the review app, and then typing that remote name in the CLI:

be pr_app pr264 restore-from production

With same error response.

Some information about your installation

  • What's your operating system? MacOS 13.14.1
  • What's the output of which development, which staging, which production?
    Parity has had multiple installation channels, and it's not uncommon for an
    old version to be somewhere else in your path.
  • If installed via Homebrew, what does brew list parity output?
  • If installed via Rubygems, what's the gem version? 3.5.0
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