We’re completely new to DigitalOcean and VPSes and we have an existing Laravel project that we’d like to migrate over to DigitalOcean. We’ve had it on various shared hosting platforms for a while now but have decided to finally make the switch over to DigitalOcean.
What would be the best way to migrate the Laravel files, MySQL database and email accounts over to our DigitalOcean account? All the different options are a little overwhelming and it would be greatly appreciated if someone could point us in the right direction.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there,
I could suggest two options:
Here is a quick video on how to deploy your Laravel App on the App Platform:
Then for your existing MySQL database, you could create a managed MySQL cluster and import your database as described in the docs here:
https://docs.digitalocean.com/products/databases/mysql/how-to/import-databases/
https://marketplace.digitalocean.com/apps/laravel
That is just a standard unmanaged Linux server where you will have root access and will be able to make any changes that you need. Once the server is ready, you could use
git clone
to clone your existing Laravel GitHub project on the server and then run the standardcomposer install
to get all of the dependencies installed.If you decide to go with a Droplet rather than the App Platform, you could also use a Managed Database, or if you prefer you could use the MySQL installed that would be already installed on that Droplet.
Let me know if you have any questions.
Hope that this helps!
Best,
Bobby