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

chrisgrim's avatar

How do you deploy your Laravel project to your self hosted server?

Hi, I am currently working locally on a laravel site I have hosted on Digital Ocean. I like to show the site to a friend, so every now and then I upload and overwrite my site on digital ocean using an ftp. Manually uploading via ftp seems like an obsolete way to update my site (not to mention I have to redo my storage:link every time I upload.) I am looking into Git, but I am having trouble understanding how to push from github to digital ocean. How do you all tackle this problem?

Thanks!

0 likes
4 replies
biniyam20's avatar

Hi! @chrisgrim I was in the same position as you a few weeks ago. I ended up deciding to get a Laravel Forge account which basically does some of that lower level server management for you, albiet it does cost about $10/month (can't remember off the top of my head). In your case, Forge offers push to deploy meaning as soon as you push to github it deploys to your digital ocean server. In addition, you can configure different artisan commands (like php artisan migrate) to run during deployment via Forge panel. Forge has a bunch of other features that are related to Laravel too.

You should watch the "learn laravel forge" series on laracasts. The first three videos are a good start to understand what the tool offers and if it will fit your needs.

Please or to participate in this conversation.