-
Notifications
You must be signed in to change notification settings - Fork 0
Windows Installation
Andreas Zahnen edited this page May 5, 2017
·
3 revisions
To install the ProfileManagementTool on Windows Server 2008/2012 R2, follow the steps below.
- Download the latest stable release of MongoDB Community Server for Windows Server 2008 R2 64-bit and later with SSL from here: https://www.mongodb.com/download-center?jmp=nav#community
- Follow these instructions to install MongoDB for Windows: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/#install-mongodb-community-edition
- After the installation, follow these instructions to create a Windows Service for MongoDB: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/#configure-a-windows-service-for-mongodb-community-edition
- Optionally, to enable authentication follow these instructions: https://docs.mongodb.com/manual/tutorial/enable-authentication/ If you do that, make sure to create a database and an according user with write access for the ProfileManagementTool. After installing the latter, you would have to change the MongoDB Connection URI accordingly, see https://github.com/ShapeChange/ProfileManagementTool/wiki/Configuration.
- Download the latest LTS version of the 64-bit Windows Installer for Node.js from here: https://nodejs.org/en/download/
- Execute the installer with the default settings and follow the instructions.
- To verify the installation, open a command prompt and run "node -v". That should print the installed Node.js version.
- Download the latest release (
pmt-win-1.0.0.zip
andpmt-{release}.tgz
) from here: https://github.com/ShapeChange/ProfileManagementTool/releases/latest - Unzip
pmt-win-1.0.0.zip
to a directory of your choice, e.g.C:\Program Files\pmt
. This file contains a wrapper for the application to run it as a windows service. - Copy
pmt-{release}.tgz
to the installation directory. - Open a command prompt with administrative rights and go to the installation directory, e.g.
C:\Program Files\pmt
. - Run the command
npm install pmt-{release}.tgz
to install the application itself. It will automatically be registered as a windows service. - Open http://localhost in a web browser if the browser is running on the same machine, or the respective hostname otherwise.
- Download the latest release (
pmt-{release}.tgz
) from https://github.com/ShapeChange/ProfileManagementTool/releases/latest and copy it to the installation directory. - Run the command
npm install pmt-{release}.tgz
to upgrade the application. The windows service will automatically be stopped before upgrading and started again when the upgrade is complete.
If you want to upgrade from version 0.1.0, you need to cleanup the installation directory following the steps below and then install from scratch following the steps above.
- To remove the windows service, open a command prompt with administrative rights and go to the installation directory, e.g.
C:\Program Files\pmt
. - Run the command
node uninstall-service.js
. - Remove the contents of the installation directory and then follow the steps for a fresh installation.