Deploying React App on Apache server

Step 1: Create app from create-react-app command

Step 2: Install gulp packages

Step 3: Create .env file

Step 4: Create gulpfile.js file in root folder

Step 5: Mention domain/subdomain in package.json

Step 6: Create .htaccess file

Step 7: Mention basename in routing

Step 8: Make build

Step 9: Execute gulp command

Step 10: Deploy the files




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Go or Not to Go (from a JavaScript Perspective)?

Orahacks Demo Presentation

Create A Menu For Your Gatsby Website Without Libs

Building CRM: Contact Management Feature Design

Class vs Functional Components

NODEMON — app crashed — waiting for file changes before starting

Material UI — Buttons and Groups

Create a JavaScript Flow Map in 4 Easy Steps

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Raj Keshwani

Raj Keshwani

More from Medium

How to install and setup Strapi headless CMS

A Guide To Firebase Authentication In React (Initial Setup)

What does async/await mean in synchronous programing?

Leverage data from RapidApi using Redux Toolkit