You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works for react apps that are bootstraped with Facebook's create-react-app tool. The script will build and deploy your app
3
+
using nginx. It serves a production build of your app. Currently the app only works for cases in which the user does not have any
4
+
other nginx configuration. I'm still working on the script to add the app to an already existing nginx configuration.
5
+
6
+
The script will install nginx on your system. Currently I've only tested it's compatibility with Ubuntu 19.04.
7
+
8
+
## How to use -
9
+
1. Clone this repository and navigate to /react-autohost
10
+
2. Give host.sh executable permissions by `sudo chmod +x ./host.sh`
11
+
3. Run `./host.sh`. The script will guide you through the process.
12
+
13
+
#### Note: Do not enclose your inputs in quotes when you run the script. The path of the react-project (that the script asks for) is the path of the directory which contains your package.json file.
0 commit comments