qutheory / toolbox

temporary secret clone
MIT License
0 stars 0 forks source link

not resolving application #4

Closed tanner0101 closed 7 years ago

tanner0101 commented 7 years ago
Gyda:deploy-server tanner$ vapor3 cloud deploy
Warning: Host verification not implemented.
I found too many apps, that match remotes in this repo,
yell at Logan to ask me to use one of these.
Instead, I'm going to ask a bunch of questions.
Loading Organizations [  •                      ]
Loading Organizations [Done]
Loading Projects [  •                      ]
Loading Projects [Done]
Loading Applications [  •                      ]
Loading Applications [Done]
Which Application?
1: Image scaling (cdn.vapor.cloud)
2: Laravel image scaling (cdn-laravel.vapor.cloud)
3: phpMyAdmin (pma.vapor.cloud)
4: Dashboard (dashboard.vapor.cloud)
5: Vapor Cloud Documentation (documentation.vapor.cloud)
6: Admin Microservice (admin-api.vapor.cloud)
7: Deploy Microservice (deploy-api.vapor.cloud)
8: Application Microservice (application-api.vapor.cloud)
> 7

There should only be one application for this remote url

Gyda:deploy-server tanner$ git remote get-url origin
git@github.com:vapor-cloud/deploy-server.git
loganwright commented 7 years ago

The issue here is that I'm actually getting 0 applications returned from endpoint, I'll need to update the command to have a better log for that situation 👍

From a dump:

    Application:
      Name: Deploy Microservice
      Repo: deploy-api
      Id: 5EBA0063-03B4-48AE-9DAE-BB838487EFD7
      Hosting: 
          Git: git@github.com:vapor-cloud/deploy-api.git
          Id: ABE028B0-ED44-47A7-9234-344DDEFC0FB1
          Environment:
            Name: production
            Branch: master
            Id: 3EBFC51B-FAC9-4FD7-9BB2-07464779A992
            Running: true
            Replicas: 1
          Environment:
            Name: staging
            Branch: master
            Id: CD7F5199-5484-4623-A43D-3AC6DC952BE0
            Running: true
            Replicas: 1

My guess is because it's registered as: git@github.com:vapor-cloud/deploy-api.git,

But in the log, it uses deploy-server.git

Gyda:deploy-server tanner$ git remote get-url origin
git@github.com:vapor-cloud/deploy-server.git
tanner0101 commented 7 years ago

aha you're right. ty