update Readme and specify application port
This commit is contained in:
parent
d2a7ccbc75
commit
fcb1f741b9
3 changed files with 26 additions and 21 deletions
30
README.md
30
README.md
|
|
@ -1,39 +1,29 @@
|
||||||
# Stitch a Ton
|
# Stitch a Ton
|
||||||
Solution by Meizar (meizar.rimadana@formulatrix.com)
|
Solution by Meizar (meizar.rimadana@formulatrix.com)
|
||||||
|
|
||||||
|
## Requirements
|
||||||
## Requirement
|
|
||||||
- .Net SDK 6.0
|
- .Net SDK 6.0
|
||||||
- OpenCVSharp4 4.11
|
- OpenCVSharp4 4.11
|
||||||
|
|
||||||
## Setup
|
## Publish
|
||||||
- Change the environment variables `ASSET_PATH_RO` in `WebApp/Properties/launchSettings.json`
|
Publish te project with targeting `linux-arm64` runtime and `self-contained`
|
||||||
- Http port can be changed as needed
|
|
||||||
|
|
||||||
## Publish and Run
|
|
||||||
Publish with targeting `linux-arm64` runtime
|
|
||||||
```
|
```
|
||||||
cd ./WebApp
|
cd ./WebApp
|
||||||
dotnet publish -r linux-arm64 -c release --self-contained
|
dotnet publish -r linux-arm64 -c release --self-contained
|
||||||
```
|
```
|
||||||
|
Transfer this published folder into Raspberry Pi
|
||||||
Go to the publish folder
|
|
||||||
```
|
```
|
||||||
cd bin/release/net6.0/linux-arm64/publish
|
bin/release/net6.0/linux-arm64/publish
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Run
|
||||||
|
On the Raspberry Pi, go to the uploaded folder.
|
||||||
Make it executable
|
Make it executable
|
||||||
```
|
```
|
||||||
chmod +x WebApp
|
sudo chmod +x WebApp
|
||||||
```
|
```
|
||||||
|
|
||||||
Run
|
Run the program
|
||||||
```
|
```
|
||||||
./WebApp
|
sudo ./WebApp
|
||||||
```
|
|
||||||
|
|
||||||
Or, if the OpenCV4 has been installed, just run it
|
|
||||||
```
|
|
||||||
cd WebApp
|
|
||||||
dotnet run
|
|
||||||
```
|
```
|
||||||
|
|
@ -4,5 +4,13 @@
|
||||||
"Default": "Information",
|
"Default": "Information",
|
||||||
"Microsoft.AspNetCore": "Warning"
|
"Microsoft.AspNetCore": "Warning"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"AllowedHosts": "*",
|
||||||
|
"Kestrel": {
|
||||||
|
"EndPoints": {
|
||||||
|
"Http": {
|
||||||
|
"Url": "http://0.0.0.0:80"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,5 +5,12 @@
|
||||||
"Microsoft.AspNetCore": "Warning"
|
"Microsoft.AspNetCore": "Warning"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"AllowedHosts": "*"
|
"AllowedHosts": "*",
|
||||||
|
"Kestrel": {
|
||||||
|
"EndPoints": {
|
||||||
|
"Http": {
|
||||||
|
"Url": "http://0.0.0.0:80"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue