Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

baspa's avatar
Level 1

Set Laravel Forge with Digital Ocean and shared hosting

I have bought a Laravel Forge subscription and some space on Digital Ocean. I also have bought a webhosting.

What I want to do is when I merge my 'development' branch with the 'master' branch it gets uploaded to the online environment. I literally have no server knowledge but really want to learn this. Can anyone explain to me what I should do/learn to accomplish this? I am willing to pay for good courses that can teach me this.

I know that Laravel Forge sets up an environment on Digital Ocean. But how do I connect this with my domain/webhosting? Also I know that I have to set something up that listen to commits on my 'master' branch. Anyone that can give me some advice?

0 likes
3 replies
jlrdw's avatar

Why would you need webhosting if you have Digital Ocean.

1 like
baspa's avatar
Level 1

So Digital Ocean is basically the same as a hosting? How do I use the domain I bought from that webhosting? @jlrdw

jlrdw's avatar

If you own the domain name that you bought you can use it at other places just set it up accordingly with digitalocean. Look to digitalocean website they have several guides you can look over.

https://www.digitalocean.com/docs/networking/dns/#limits But there is a difference in a domain name they assign for shared hosting versus a unique one that you bought.

Please or to participate in this conversation.