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

Wakanda's avatar
Level 10

Migrating from shared hosting to Laravel Forge/Digital Ocean

I have an eLearning platform running on Namecheap shared hosting and now want to migrate to forge using digital ocean, how can I migrate all the existing info ie image, videos stored in the storage and my database to laravel forge?

0 likes
7 replies
bugsysha's avatar
bugsysha
Best Answer
Level 61

If you can afford the downtime then just put your site into maintenance mode and migrate storage folder and database dump. If not then let's worry about that when you answer if you need it.

1 like
bugsysha's avatar

Create a vagrant or docker setup on your local machine that matches the production and just deploy the code, copy the contents of storage directory and restore the database and see if everything works. If it works then you can follow the same steps on Digital Ocean and you are good to go.

1 like
Wakanda's avatar
Level 10

@bugsysha database imported now can i now import or migrate the storage folder or public folder to forge

bugsysha's avatar

Is this a question or you stating what you are going to do now?

Wakanda's avatar
Level 10

@bugsysha sorry for the grammatical errors. I meant I have managed to sort out the DB side of things and still stuck on moving the storage folder to forge.

bugsysha's avatar

I guess you do not want any help with that since you didn't describe what the problem is that you are facing?

Please or to participate in this conversation.