Hi, I have followed this tutorial exactly: https://medium.com/@mixpeal/simplest-way-to-deploy-reactjs-web-app-to-digital-ocean-to-production-adfb9f1667ed
but I get a 502 error before I’ve even cloned my git to my server. It happened after I edited the ‘location’ bit in ‘/etc/nginx/sites-avaliable/default’
Can anyone see where I went wrong? My site is ‘harrybilney.co.uk’
Cheers!
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!
Hello, @harrybilney01
I assume you mean that you’ve encountered a 502 error after installing Nginx on your droplet? My suggestion will be to follow one of our tutorials for installing Nginx on Digital Ocean droplet and then continue with the rest of the steps in the tutorial you’ve posted.
https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04
(If you’re not using Ubuntu 18.04 you an switch this via the blue drop-down menu and select the distribution that you use)
You can also see the rest of our tutorials about React in our community:
https://www.digitalocean.com/community/tags/react?type=tutorials
Let me know if you have any questions.
Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.