@bobbybouwmann It is definitely possible to use Forge (and Envoyer) with GCP. I am using them both for production grade applications. The process is not as straightforward/simple as using one of the included server providers (i.e. AWS, Linode, DO). See below for some info.
@rajusutra Like I said above, the process is not entirely as straight forward as using one of Forge's server providers. The basic process is below:
- Create a new Compute Engine instance to your specification. Wait for it to finish provisioning and copy the server's public IP.
- Sign into Forge and click the
Custom VPS option. Fill in the details from your Compute Engine instance from step 1. Note, you have to specify the RAM size.
- Forge will give you a bash script/command to run on the server. This will provision the server with Forge's setup. Copy the ENTIRE script.
- You need to SSH into the CE instance by one of two ways: 1) Use the GCP Console, or 2) Add a SSH key to the server and SSH in from your desktop terminal.
- Paste the script from step 3 into the terminal and let it run. This will take some time as it installs the necessary software on your server. PHP, Nginx, etc.
- As this process is working, you should see the server listed in your Forge dashboard and showing a "Provisioning.." status. There should also be some logs for your server, indicating what is happening on the server.
- Once this process completes, you should be able to test the connection to your server through Forge and see "Successful."
- To test that the web server and default site are live, copy and paste the server IP into your browser. You should see a PHP Info page.
A couple things to note here: if you did not enabled HTTPS support on the CE Instance, you must explicitly tell your browser to visit http:// or you wont see the site. This also does not cover setting up the database or any "real" sites. Additional work is needed for these to work, although the process for doing so is no different than if you used any other provider in Forge.
This is a pretty high-level overview that I provided just off the top of my head after doing this for several projects and lots of practice. Hopefully this gets you going and if not, I can provide additional resources that will help.