An Interest In:
Web News this Week
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
April 11, 2022 06:40 am GMT
Original Link: https://dev.to/manojbhadane/deploy-reactjs-app-on-shared-hosting-like-godaddy-hostinger-etc-hko
Deploy ReactJS app on shared hosting like GoDaddy, Hostinger etc.
Step 1 : Create .htaccess file in public folder and below content in it
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]
Step 2: Build app using npm or yarn
npm run build
or
yarn run build
Step 3: Upload content of build/ directory in to public_html/ directory on shared hosting
Done.
Please follow to get updated posts and hit like to motivate me
Thanks
Original Link: https://dev.to/manojbhadane/deploy-reactjs-app-on-shared-hosting-like-godaddy-hostinger-etc-hko
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To