DEV Community

Discussion on: Create a Full-Stack web application using React, Strapi, Nginx, MongoDB, and DigitalOcean

Collapse
 
anubhavtalukdar profile image
Anubhav Talukdar • Edited

I think there's a slight mistake in Step 5.4 that had me figuring out the error for so long. The command should be:

scp -r ./build/* user@server_ip_address:/var/www/domain.com/react/

Because the folder react/ was used as the root directory in the nginx config file and not the html/ folder. Hope it helps anyone who gets stuck here.

Collapse
 
jackrkelly profile image
Jack Kelly

I didn't catch this... Thanks for pointing it out!