intials app
This commit is contained in:
7
lstDocs/docs/install-extras/_category_.json
Normal file
7
lstDocs/docs/install-extras/_category_.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"label": "Install",
|
||||
"position": 3,
|
||||
"link": {
|
||||
"type": "generated-index"
|
||||
}
|
||||
}
|
||||
11
lstDocs/docs/install-extras/iis.md
Normal file
11
lstDocs/docs/install-extras/iis.md
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Runing in IIS (Internet Information Services)
|
||||
|
||||
This is the Approved way of running via windows and utlizing HTTPS
|
||||
|
||||
This process is optional and not needed to run the app.
|
||||
|
||||
Please note that if you plan to utlize the scanner app you must use IIS to run as PWA apps requires ssl
|
||||
BIN
lstDocs/docs/install-extras/img/terminal.png
Normal file
BIN
lstDocs/docs/install-extras/img/terminal.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 57 KiB |
61
lstDocs/docs/install-extras/services.md
Normal file
61
lstDocs/docs/install-extras/services.md
Normal file
@@ -0,0 +1,61 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Run as a service
|
||||
|
||||
To run LST as a serive there are 2 options to accomplish this
|
||||
|
||||
## Install
|
||||
|
||||
Utlizing the powershell script that is in the scripts folder
|
||||
|
||||
Open vscode once again or clear the termnial if you still have it open.
|
||||
|
||||
Next run the code below.
|
||||
|
||||
```bash
|
||||
.\scripts\services.ps1 -serviceName "LST_app" -option "install" -appPath "E:\LST" -description "Logistics Support Tool" -command "run start"
|
||||
```
|
||||
|
||||
This will
|
||||
|
||||
- Create a windows service using NSSM and call it LST_app
|
||||
- It will also set the restart policy to restart 3 times
|
||||
- It will depend on MSQLServer to make sure this is up and running before we try to connect to it
|
||||
- It will start the node app
|
||||
- And Lastly will set it to auto start once the server comes up.
|
||||
|
||||
## Stop the Service
|
||||
|
||||
To stop the service you can utilize the same script
|
||||
|
||||
```bash
|
||||
.\scripts\services.ps1 -serviceName "LST_app" -option "stop" -appPath "E:\LST"
|
||||
```
|
||||
|
||||
This will completely stop the service and you will need to start it
|
||||
|
||||
## Start the Service
|
||||
|
||||
Yet again utlizeing the same script
|
||||
|
||||
```bash
|
||||
.\scripts\services.ps1 -serviceName "LST_app" -option "start" -appPath "E:\LST"
|
||||
```
|
||||
|
||||
## Deleteing the Service
|
||||
|
||||
This will compeltely remove the service from the server
|
||||
|
||||
```bash
|
||||
.\scripts\services.ps1 -serviceName "LST_app" -option "delete" -appPath "E:\LST"
|
||||
```
|
||||
|
||||
## Restart
|
||||
|
||||
This will stop the service wait 2 seconds and restart the service
|
||||
|
||||
```bash
|
||||
.\scripts\services.ps1 -serviceName "LST_app" -option "restart" -appPath "E:\LST"
|
||||
```
|
||||
Reference in New Issue
Block a user