0% found this document useful (0 votes)
0 views3 pages

pkl#3 - Deploy Reactjs Ke Nginx Web Server

This document outlines the steps to deploy a React.js application on an Nginx web server for the first time. Key steps include installing Nginx, creating a React project, configuring the homepage in package.json, building the project, and setting up routing in Nginx. Finally, it advises restarting Nginx and accessing the application via a web browser.

Uploaded by

bayurara555
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views3 pages

pkl#3 - Deploy Reactjs Ke Nginx Web Server

This document outlines the steps to deploy a React.js application on an Nginx web server for the first time. Key steps include installing Nginx, creating a React project, configuring the homepage in package.json, building the project, and setting up routing in Nginx. Finally, it advises restarting Nginx and accessing the application via a web browser.

Uploaded by

bayurara555
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Deploy React js Ke web server nginx (First Time)

1. Install nginx

2. Create Project React js

3. Add Properti homepage di package.json React


"homepage": "/project1tes",

4. Run : Npm Run Build

5. Create folder in /var/www//html/yournameproject

6. Run to deploy file build in nginx

7. Open file konfigurasi Routing in wsl


8. Konfigurasi Routing Aplikasi React Js In NGINX and Save file.

9. Restart nginx

10. Open In browser with localhost/yournameproject


Source

Tutorial Deploy React-App menggunakan Nginx : https://www.youtube.com/watch?


v=8JMTNcn6meI&t=11s&ab_channel=EdiMurwanto

How To Deploy a React Application with Nginx on Ubuntu :


https://www.digitalocean.com/community/tutorials/deploy-react-application-with-nginx-
on-ubuntu

You might also like