-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding upgrade and delete scenarios (#41)
* adding upgrade and delete scenarios * Improve setup script based on suggetions * improve documentations for setup/upgrade
- Loading branch information
Showing
6 changed files
with
339 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,36 @@ | ||
### Setup PACE-HRH-UI using batch script | ||
|
||
1. Download [start_pace_ui.bat](https://github.com/InstituteforDiseaseModeling/PACE-HRH-UI/blob/main/start_pace_ui.bat) to your computer. ![](./screenshots/download_batch.png) | ||
|
||
2. Double-click on the downloaded file `start_pace_ui.bat` to start the PACE-HRH-UI application installation. Note: Your computer's antivirus scan may prevent you from running it, click on "More Info" and "Run Anyway" to proceed. If this works, please go to step 3.![](./screenshots/defender.png) | ||
|
||
Alternatively you can use command prompt window to run it. In Windows search bar, type `%windir%\system32\cmd.exe` and click `Open` ![](./screenshots/cmd.png) | ||
|
||
This should open a command prompt window (cmd), you can navigate to the folder where you downloaded the file using `CD` command. For example `CD C:\Users\mewu\Downloads` Run the following command: `start_pace_ui.bat` ![](./screenshots/commandline.png) | ||
1. Download [start_pace_ui.bat](https://github.com/InstituteforDiseaseModeling/PACE-HRH-UI/blob/main/start_pace_ui.bat) to your computer. | ||
<br><br> | ||
<img src="./screenshots/download_batch.png" width="600"> | ||
<br><br> | ||
2. Double-click on the downloaded file `start_pace_ui.bat` to start the PACE-HRH-UI application installation. Note: Your computer's antivirus scan may prevent you from running it, click on "More Info" and "Run Anyway" to proceed. | ||
<br><br> | ||
<img src="./screenshots/defender.png" width="600"> | ||
<br><br> | ||
If this works, please ignore the following instruction about commandline and go directly to step 3. | ||
<br><br> | ||
If this still doesn't work you can use command prompt window to run it. In Windows search bar, type `%windir%\system32\cmd.exe` and click `Open` | ||
<br><br> | ||
<img src="./screenshots/cmd.png" width="600"> | ||
<br><br> | ||
This should open a command prompt window (cmd), you can navigate to the folder where you downloaded the file using `CD` command. For example `CD C:\Users\mewu\Downloads` Run the following command: `start_pace_ui.bat`. If the path has spaces, you will need to put the path in quotes. For example `CD "C:\Users\mewu\Download\My Test"` and then `start_pace_ui.bat`. | ||
<br><br> | ||
<img src="./screenshots/commandline.png" width="600"> | ||
<br><br> | ||
|
||
#### Installation process <!-- {#installation} --> | ||
3. When you start the application, you will see a command prompt window asking for installation location. **You must have internet for the first time installation.** (However,You will be able to zip this "installed folder" later and send it to those who do not have internet access for offline run). You can enter either absolute or relative path, the installation process does not accept an existing folder and will create the new folder for you. All the files needed to run will be installed into this location and you will need to launch the app from this location later. **Please write down the path so that you can remember it later.** | ||
**You will also need to agree on our license terms in order to proceed.**![](./screenshots/prompt.png) | ||
**You will also need to agree on our license terms in order to proceed.** | ||
<br><br> | ||
<img src="./screenshots/prompt.png" width="600"> | ||
<br><br> | ||
|
||
4. The installation may take 5-10 minutes depending on your computer's processing power and internet speed. Once the installation is completed, you will see it asking you to reopen the `start_pace_ui.bat` from your chosen directory (The one you wrote down from step 3). You can now close the command prompt window and go to this folder, from there you can launch the app using the `start_pace_ui.bat` in offline mode. ![](./screenshots/success.png) | ||
4. The installation may take 5-10 minutes depending on your computer's processing power and internet speed. Once the installation is completed, you will see it asking you to reopen the `start_pace_ui.bat` from your chosen directory (The one you wrote down from step 3). You can now close the command prompt window and go to this folder, from there you can launch the app using the `start_pace_ui.bat` in offline mode. | ||
<br><br> | ||
<img src="./screenshots/success.png" width="600"> | ||
<br><br> | ||
|
||
5. **Make sure to go to folder of your choice from step3, then double click `start_pace_ui.bat` from your installed location**, it should open the app on port 8888 using your default browser. Leave the commandline window open while interacting with the app. ![](./screenshots/app.png) | ||
5. **Make sure to go to folder of your choice from step3, then double click `start_pace_ui.bat` from your installed location**, it should open the app on port 8888 using your default browser. Leave the commandline window open while interacting with the app. | ||
<br><br> | ||
<img src="./screenshots/success.png" width="600"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
### Upgrade PACE-HRH-UI using batch script | ||
|
||
1. Download [start_pace_ui.bat](https://github.com/InstituteforDiseaseModeling/PACE-HRH-UI/blob/main/start_pace_ui.bat) to your computer. | ||
<br><br> | ||
<img src="./screenshots/download_batch.png" width="600"> | ||
<br><br> | ||
2. Double-click on the downloaded file `start_pace_ui.bat` to start the PACE-HRH-UI application installation. Note: Your computer's antivirus scan may prevent you from running it, click on "More Info" and "Run Anyway" to proceed. | ||
<br><br> | ||
<img src="./screenshots/defender.png" width="600"> | ||
<br><br> | ||
If this works, please ignore the following instruction about commandline and go directly to step 3. | ||
<br><br> | ||
If this still doesn't work you can use command prompt window to run it. In Windows search bar, type `%windir%\system32\cmd.exe` and click `Open` | ||
<br><br> | ||
<img src="./screenshots/cmd.png" width="600"> | ||
<br><br> | ||
This should open a command prompt window (cmd), you can navigate to the folder where you downloaded the file using `CD` command. For example `CD C:\Users\mewu\Downloads` Run the following command: `start_pace_ui.bat`. If the path has spaces, you will need to put the path in quotes. For example `CD "C:\Users\mewu\Download\My Test"` and then `start_pace_ui.bat`. | ||
<br><br> | ||
<img src="./screenshots/commandline.png" width="600"> | ||
<br><br> | ||
3.When you start the application, you will see a command prompt window asking for installation location. Since you have already installed in before, please enter the location that you used before. Using two different installation locations on the same machine will result in unexpected behavior, so always remember the path of your previous installation and update from it. The folder you enter should be the folder which contains "PACE-HRH-UI" subfolder, for example: "pace_test" in the example shown below. | ||
<br><br> | ||
<img src="./screenshots/folder.png" width="600"> | ||
<br><br> | ||
4. After you enter an existing location, it will ask you to confirm the update. Type `Y` and press `Enter` to confirm the update. | ||
<br><br> | ||
<img src="./screenshots/Confirm_update.png" width="600"> | ||
<br><br> | ||
5. The script will prompt you for the version of the application you want to install. You can enter the version number you want to install. For example, if you want to install version 1.0.0, you can enter `1.0.0` and press `Enter`. If you just want to use default version, please press `Enter` directly. | ||
<br><br> | ||
<img src="./screenshots/Version.png" width="600"> | ||
6. Follow steps as shown in [Installation](Setup.md#installation) section. |
Oops, something went wrong.