DEV Community

Discussion on: Deploy a React App on AWS Lightsail: Testing, Docker, Docker Compose, Nginx & Github Actions

Collapse
 
amrelmohamady profile image
Amr Elmohamady

Why would you use all that for a react app?! Like docker and nginx... Really!

Collapse
 
jlancelot2007 profile image
Andrew Plater

The point is to learn how to use Lightsail not React.

Collapse
 
amrelmohamady profile image
Amr Elmohamady

Then the tutorial should be with node not react!

Thread Thread
 
barnent1 profile image
Glen Barnhardt

Why?

Collapse
 
koladev profile image
Mangabo Kolawole

Hey Amr.

We can use VPS to deploy some frontend projects too. At my job, we even use linode, docker and caddy to deploy the management dashboard. :)

Collapse
 
tolsee profile image
Tulsi Sapkota

The fact that we could doesn't mean we should 🙂. Great post by the way, I am sure many people will learn alot of things from this.

But, I would like to point out that serving static react apps through cloudfront(Any other CDN) is way better for most of the cases.

Thread Thread
 
barnent1 profile image
Glen Barnhardt

And way more expensive. Some of us cater to smaller businesses that only want to pay a small amount.

Collapse
 
barnent1 profile image
Glen Barnhardt

I don't know why you would say that. Do you have a problem with react being deployed in a docker container? Some of us really wanted to see the complete flow of GitHub actions, SPECIFICALLY for a REACT APP and not node.js!!!