updated readme
This commit is contained in:
36
README.md
36
README.md
@@ -1,4 +1,4 @@
|
|||||||
# Mav Mobile Ui
|
# Mav Mobile UI
|
||||||
|
|
||||||
This is a React-based web application built with Vite (react and typescript).
|
This is a React-based web application built with Vite (react and typescript).
|
||||||
|
|
||||||
@@ -68,13 +68,13 @@ To build for production:
|
|||||||
yarn build
|
yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
Navigate to your Mav-Mobile-UI folder
|
- Navigate to your Mav-Mobile-UI folder
|
||||||
Select the Dist folder
|
- Select the Dist folder
|
||||||
Compress to (ZIP)
|
- Compress to (ZIP)
|
||||||
Log into box on Moba using Session > SSH and putting IP in Remote Host.
|
- Log into box on Moba using Session > SSH and putting IP in Remote Host.
|
||||||
Creds are mav:mav
|
- Creds are mav:mav
|
||||||
Drag and drop dist.zip into file explorer menu on left hand side (has to be named dist.zip exactly).
|
- Drag and drop dist.zip into file explorer menu on left hand side (has to be named dist.zip exactly).
|
||||||
Run command
|
- Run command
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo ./integrate-web-ui.sh
|
sudo ./integrate-web-ui.sh
|
||||||
@@ -85,3 +85,23 @@ Run
|
|||||||
```bash
|
```bash
|
||||||
sudo nano web-static/index.html
|
sudo nano web-static/index.html
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- add the following between the lines </body> & </html>
|
||||||
|
|
||||||
|
```js
|
||||||
|
<foot>
|
||||||
|
<script>
|
||||||
|
if (window.location.pathname !== "/Mobile") {
|
||||||
|
window.location.replace(window.location.origin + "/Mobile");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</foot>
|
||||||
|
```
|
||||||
|
|
||||||
|
- Run
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo reboot
|
||||||
|
```
|
||||||
|
|
||||||
|
It should come back up all working
|
||||||
|
|||||||
Reference in New Issue
Block a user