mehrancodes / laravel-harbor

a cli tool to Quickly create on-demand preview environment for your app on Laravel Forge.
https://www.laravel-harbor.com
MIT License
75 stars 7 forks source link

FORGE_SERVER description #24

Closed mgkimsal closed 11 months ago

mgkimsal commented 1 year ago

Is this the 'name' (like 'breezy-hurricane' or whatever random name forge might assign)? Or an IP address? Or something else?

mehrancodes commented 1 year ago

Sorry for the confusion. It is referring to the IP address.

Please let me know if there are any other aspects that aren't clear. Your feedback is invaluable and I'm here to assist you with every step.

mgkimsal commented 12 months ago

So... setting the FORGE_SERVER to the IP of the forge server in question, I still get

Laravel\Forge\Exceptions\NotFoundException 

  The resource you are looking for could not be found.

I can't get much useful debugging from github action runners, but it is in the FindServer code

composer/vendor/mehrancodes/veyoze/app/Services/Forge/Pipeline/FindServer.php(30): Laravel\Forge\Forge->server()

mgkimsal commented 12 months ago

The 'FORGE_SERVER' needs to be the server's ID in Forge (54183, for example - can get from the URL if nothing else)

So.. now it can't make a site. Still digging through

 INFO    Start finding the server.
  INFO    Finding the associated site.
  INFO    ---> Site not found.
  INFO    Creating a new site.
  INFO    ---> Enabling site isolation.
[2023-10-20 17:53:26] development.ERROR: The given data failed to pass validation. {"exception":"[object] (Laravel\\Forge\\Exceptions\\ValidationException(code: 0): The given data failed to pass validation. at /composer/vendor/laravel/forge-sdk/src/MakesHttpRequests.php:106)
mehrancodes commented 12 months ago

Thanks for addressing this issue on the https://github.com/mehrancodes/veyoze/issues/25.

I'll be working on improving the clarity of error messages for better troubleshooting this week.

Also you can refer to this working sample for Laravel that includes two workflows for provision and teardown processes.

mehrancodes commented 12 months ago

Check out the latest release! Please try the provision command again to help pinpoint the issue with the Forge Site creation. 🛠️