svenluijten / forge-cli

🔥 A command line utility to interact with your Laravel Forge servers, sites, and more.
https://svenluijten.com
MIT License
64 stars 14 forks source link

Authentication issue upon site deployment #6

Closed sepehr closed 7 years ago

sepehr commented 7 years ago

I can't seem to be able to deploy a site using the CLI while I have access to do so in the Forge's UI.

 ϟ ~/.dotfiles  master  forge deploy:site 111309 264123 -vvv

  [Exception]
  Unauthorized

Exception trace:
 () at /Users/Sepehr/.composer/global/sven/forge-cli/vendor/themsaid/forge-sdk/src/MakesHttpRequests.php:101
 Themsaid\Forge\Forge->handleRequestError() at /Users/Sepehr/.composer/global/sven/forge-cli/vendor/themsaid/forge-sdk/src/MakesHttpRequests.php:75
 Themsaid\Forge\Forge->request() at /Users/Sepehr/.composer/global/sven/forge-cli/vendor/themsaid/forge-sdk/src/MakesHttpRequests.php:33
 Themsaid\Forge\Forge->post() at /Users/Sepehr/.composer/global/sven/forge-cli/vendor/themsaid/forge-sdk/src/Actions/ManagesSites.php:247
 Themsaid\Forge\Forge->deploySite() at /Users/Sepehr/.composer/global/sven/forge-cli/vendor/sven/forge-cli/src/Commands/Deployment/Deploy.php:29
 Sven\ForgeCLI\Commands\Deployment\Deploy->perform() at /Users/Sepehr/.composer/global/sven/forge-cli/vendor/sven/forge-cli/src/Commands/BaseCommand.php:52
 Sven\ForgeCLI\Commands\BaseCommand->execute() at /Users/Sepehr/.composer/global/sven/forge-cli/vendor/symfony/console/Command/Command.php:264
 Symfony\Component\Console\Command\Command->run() at /Users/Sepehr/.composer/global/sven/forge-cli/vendor/symfony/console/Application.php:869
 Symfony\Component\Console\Application->doRunCommand() at /Users/Sepehr/.composer/global/sven/forge-cli/vendor/symfony/console/Application.php:223
 Symfony\Component\Console\Application->doRun() at /Users/Sepehr/.composer/global/sven/forge-cli/vendor/symfony/console/Application.php:130
 Symfony\Component\Console\Application->run() at /Users/Sepehr/.composer/global/sven/forge-cli/vendor/sven/forge-cli/bin/forge:53

deploy:site <server> <site>

Donno if it's an issue with the upstream Forge SDK or the forge-cli itself; any ideas?

P. S. The site I'm trying to deploy is part of a circle that I've joined; not my own.

svenluijten commented 7 years ago

This appears to be an issue with the SDK I'm using (themsaid's Forge SDK) though, not this library. You might want to open an issue there 🙂

sepehr commented 7 years ago

Will do so. Thanks for the pointer.