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

chrisgrim's avatar

Transfering Local Project To Digital Ocean

Hi,

I have created a local laravel project called chrisgrim. Then on digital ocean I setup LAMP and composer and created laravel project called chrisgrim on the server. I got it working and was even able to point chrisgrim.com to it and see it.

I then tried to upload my local project to the same folder and override my server chrisgrim folder. This didn't work and I couldn't connect anymore.

I was wondering why this didn't work? Is there a way I can do this to get it to work?

Thanks so much!

0 likes
3 replies
Cronix's avatar

The /public dir needs to be set as the DocumentRoot for the site.

chrisgrim's avatar

Hi @Cronix

Do I need to set that in the local one?

I did have a fully working laravel project on my digital ocean server. The sites-enabled laravel file was pointing to the public dir I believe since I was able to go to www.chrisgrim.com and see the created project.

chrisgrim's avatar
chrisgrim
OP
Best Answer
Level 10

I figured out my issue! I was trying to upload the Vendors folder. I realized I could upload everything else and then just use composer to ensure I had the right packages for my app.

1 like

Please or to participate in this conversation.