score:1
if you're using webpack to create the bundle you need to move the index.html and the bundle.js to your client's server and configure a http server like nginx or apache to point to the index.html file.
score:1
that question is very broad. in case you have a server, you need to login there using ssh and install apache or another server like nginx. i guess your reacft app does not depend on php, or node, so it is static html with js. so basically:
sudo apt-get install apache2
will install the server and to check if it is running just use a browser and navigate to http://<your server ip>
and you should see a page saying: »it's working«
if so:
cd /var/www/html
rm -rf *
exit
cd /your/local/project
scp -r * user@<your server ip>:/var/www/html
that should upload all your file to /var/www/html
. if you then get a forbidden
response, you need to sudo chown -r www-data:www-data *
in /var/www/html
have a look here https://help.ubuntu.com/lts/serverguide/httpd.html
but, however, setting up a server becomes more complex, depending on your needs: like node/php/mysql support and of course the os, the instructions above are suitable for ubuntu. additionally no considerations about security are included, so be careful if do not know what you are doing!
Source: stackoverflow.com
Related Query
- How can I setup my react app in ubuntu server
- How can I start my node server and react app at the same time?
- How we can convert client side rendering react js app to server side rendering using react router 4?
- React/webpack - How can I host react app on one server and images/fonts on another server?
- How to deploy react app in ubuntu server with bitbucket pipeline
- How can I setup flow to check ALL files in create react app without checking node_modules?
- How can we receive a csv file in server side react hooks web app
- How does a react app can be set up on server
- How to deploy a React App on Apache web server
- How to setup apache server for React route?
- How to know if react-router can go back to display back button in react app
- how can I show customized error messaged from server side validation in React Admin package?
- How can I pass data from express server to react views?
- how to share environment variables between react app and express js server hosting it as static site
- How do I configure my Nginx server to work with a React app in a subfolder?
- How to deploy React App on production with Server Side Rendering
- How to setup react app with SCSS? (Errors)
- How can I programmatically set the user details for Launch Darkly in my react app
- How can I make my React app render Bootstrap tables with crud
- How can I access my react app from another pc in local network?
- How to inject data from the server in index.html in an ASP.NET Core 3 React app
- How can you access Azure Web App AppSettings from a React app at run time
- How to add build react app (js,css) in to the laravel back end server
- How can I build a React app with Webpack and import an assets folder?
- How to pass config variables from server (Express) to React App
- how can i host react app in IIS web server?
- How can I render the react app with redux using the ReactJS.NET?
- How to create childElement from server response in a react app
- How can I deploy react app on github pages?
- How to deploy a react app that does not have index.html on an apache server for production
More Query from same tag
- GraphQL, React, Apollo - Expected Iterable, but did not find one for field "..."
- ReactJs: TypeError: Cannot assign to read only property 'cartHandler' of object '#<Object>'?
- React Hooks and ActionCable
- TypeError: Cannot destructure property 'employees' of 'Object(...)(...)' as it is undefined
- Edit CSS of React Components
- Handling input form where input field is a component
- Passing path parameter to a React context provider
- React router doesn't render route, but path variables are set
- react-spring single-component mount/unmount reveals
- How to display html code from a json data in my react js page?
- I am having a hard time understanding how to pass a prop in React and how to render it to the browser
- how to make rounded RaisedButton and Textfield
- how to capture tab key press in react component?
- React state disappearing
- How to add Custom buttons group outside slider React.js
- How can I fix : Request header field x-access-token is not allowed by Access-Control-Allow-Headers in preflight response?
- this.props.yyy is not a function
- Displaying different content based on Route - Node.js/React
- Redux decorators get data in react component state
- NavLink not showing in Navbar
- How to set tabindex on library react components?
- Run or execute script after page is loaded with react helmet, react gatsbyjs
- Why is data.map not a function?
- react I want to output the array in multiple tags rather than one tag
- React MUI Select with react-hook-form doesn't work with Cypress
- How to convert React JSX material ui elements to string
- ReactJs retains multiple react values and do not reset state after being refreshed
- How can I get the name of the current user from the Json Web Token?
- Possible to mix JSX and regular object for routes in React Router?
- Checkbox Issues in ReactJS