Chose the correct server and site in forge init.
Then manually edit forge.yml to change env from "production" to "stage".
▶ forge info stage
+-----------+-------------------------+
| Key | Value |
+-----------+-------------------------+
| Server | example-stage |
| IP | x.x.x.x |
| Site | example.com |
| Directory | /public |
+-----------+-------------------------+
▶ forge deploy stage
Deploying site on stage...
In TimeoutException.php line 22:
Argument 1 passed to Laravel\Forge\Exceptions\TimeoutException::__construct() must be of the type array, bool given, called in phar:
///example.com/.composer/vendor/beyondcode/forge-cli/builds/forge/vendor/laravel/forge-sdk/src/MakesHttpRequests.php on line 138
Not sure why I got the timeout exception. Any suggestions or logs I can check? For the record the timeout seemed to come pretty quickly (like after 10-15 seconds, not 30s or 60s).
▶ php -v && forge --version && lsb_release -a
PHP 7.4.10 (cli) (built: Sep 9 2020 06:36:14) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.10, Copyright (c), by Zend Technologies
Forge 1.0.5
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic