Viking my existing heroku app for multiple environments

I am trying to unlock an existing application in order to create an intermediate environment separate for the production one, and I am encountering errors no matter what I try.

I definitely have a heroku toolkit and I definitely logged in.

When I run git remote -v, I get the following:

origin  https://github.com/account/mysite.git (fetch)
origin  https://github.com/account/mysite.git (push)
production  git@heroku.com:mysite.git (fetch)
production  git@heroku.com:mysite.git (push)

When I run heroku fork -a production staging, I get the following:

Failed to fork app production to staging.

     !    WARNING: Potentially Destructive Action
 !    This command will destroy staging (including all add-ons).
 !    To proceed, type "staging" or re-run this command with --confirm staging

If I type staging, we get the following:

Deleting staging... failed
 !    You do not have access to the app staging.

What bothers me is why he believes that an application called "staging" exists at all, I'm trying to develop it as a new environment.

When I try another sentence in the terminal, I get the following:

heroku fork -a production --confirm staging
 !    Mismatch between --app and --confirm
Failed to fork app  to .
 !    Confirmed app staging did not match the selected app .

When I try heroku apps:info, I get:

 !    App not found

. heroku apps:info --app staging heroku apps:info --app production,

 !    You do not have access to the app staging.

git remote rm staging, , "" :

error: Could not remove config section 'remote.staging'

, , "" , , git push production master,

 !  No such app as mysite.

http://mysite.herokuapp.com, !

- - ?

+4
1

staging , git. . mysite-prod mysite-staging .

+7

Source: https://habr.com/ru/post/1531069/


All Articles