This script was created to automate the manual setup described here: https://docs.mendix.com/developerportal/deploy/deploy-mendix-on-microsoft-windows/
Please note that this setup is for Mendix demo or POC purposes only. Windows Server Datacenter 2016, 2019 and 2022 were used to test and develop this script.
-
Log on to your Windows VM/server as administrator.
-
Copy all the files in this repo to the server desktop.
-
Search for 'Windows Powershell ISE (integrated scripting environment)' and launch it as administrator. Drag the scripts A, B, C into the ISE to open them.
-
Script A
- Hit the play button (Run Script, F5). This will start installing the prerequisites one by one, as indicated by the progress messages in console below. The whole script should take approximately 15 minutes or so. Postgres installation takes the longest (about 10 minutes). The script may seem stuck at this step, but please be patient and let the script finish
- Hit the play button (Run Script, F5). This will start installing the prerequisites one by one, as indicated by the progress messages in console below. The whole script should take approximately 15 minutes or so. Postgres installation takes the longest (about 10 minutes). The script may seem stuck at this step, but please be patient and let the script finish
-
Script B
- These steps are to be followed manually because we have not yet found a way to automate the installation of the Mendix Service Console. Run the service console installer and enter details as discussed here.
- These steps are to be followed manually because we have not yet found a way to automate the installation of the Mendix Service Console. Run the service console installer and enter details as discussed here.
-
Script C
- Hit the play button (Run Script, F5). This will configure an IIS website as required.
- Hit the play button (Run Script, F5). This will configure an IIS website as required.
-
In your browser, navigate to the IP address or DNS name of your server. It should serve the Mendix app over port 80. Make sure that your server is accessible over this port.
-
You should be able to login to your app using the MxAdmin user. Its password can be set in the Mendix Service Console > Advanced Options. You will need to restart the service for the password change to become effective.
SHARED BY @jeffdice-mendix in the original repo. Copied here for continuity:
- Note that this can be run on the Windows Server 2019+ trial versions downloadable from MSFT, and if using as a VM, a .vhd is provided in addition to .ISO. Link for 2019 is https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2019
-
If using the above environment, you'll need to:
-
Turn off IE Enhanced Security Configuration - https://learn.microsoft.com/en-us/troubleshoot/developer/browsers/security-privacy/enhanced-security-configuration-faq
-
Allow Powershell to run 'unsigned' scripts - Link for full explanation follows, but short version is open Powershell CLI as an Administrator and run command "Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass" - https://woshub.com/configure-powershell-script-execution-policy/
-
-
Chrome should be used to check results of Mendix app being spun up and not the Windows Server default browser if it's IE 11