Skip to main content

Deploying on a windows server machine (Azure cloud)

In order to obtain a working machine with RAP3, we had difficulties getting everything to work on an Ubuntu machine. This is probably because of a lack of knowledge on our side about that infrastructure.

Because of these difficulties, we decided to install everything on a Windows server. This is a log of what we did.

1 Setting up the virtual machine

Resourcegroep(wijzigen)

Ampersand

Computernaam

Renium

Besturingssysteem

Windows

Grootte

Standard DS2 versie 2 (2 kernen, 7 GB geheugen)

Openbaar IP-adres

52.174.32.40

Virtueel netwerk/subnet

Ampersand-vnet/default

2 Getting the required software

Once the VM has been launched, connect to it. The following software was installed, using default settings, unless stated otherwise:

  1. Google Chrome
  2. Git (version 2.12.2.2 - 64-bit)
  3. Xampp (version 7.0.15 / PHP 7.0.15)
  4. The Haskell Tool Stack
  5. graphviz
  6. MiKTeX (all defaults, except choose to install missing packages on-the-fly: Yes)
  7. Composer

3 Configuring

Now all the software is in place, some of it needs configuration. This is what I did:

WhatWhyHow I did it
We need a place to store all Git repo'sAll repo's are nicely togetherCreate directory c:\git
Clone the ampersand repoSo we can build ampersand executablegit clone https://github.com/AmpersandTarski/Ampersand.git
Clone the ampersand-models repoSo we have the models at handgit clone https://github.com/AmpersandTarski/Ampersand-models.git
Setup stack for ampersand repowe need stack to be able to generate ampersand. It will put GHC in place and other stuff.in c:\git\ampersand say 'stack setup'
Restart the shellbecause MSYS2 says so!restart the shell
Build ampersand.exeThat is what we need to run RAP3in c:\git\ampersand say 'stack install'
Let apache listen at port 8088Use a non-standard port, so it can be configured with tunnelingGo to the xampp control panel, choose config in the Apache row. httpd.conf wil open in notepad. Edit the listen port number. Also click the config button at the upper right corner of the xampp control panel. Then click Service and Port Settings. Edit the Apache Main Port. Also check the Autostart of modules: Apache and MySQL. Stop and start Apache (from the xampp control panel)
Build RAP3 applicationgoto RAP3 directory; say: ampersand.exe --meta-tables --add-semantic-metamodel --verbose -pC:\xampp\htdocs\RAP3 RAP3.adl
Putting Graphviz into your pathSo ampersand can use dot and neato executables to build graphicsThe path to add is C:\Program Files (x86)\Graphviz2.38\bin
create a user for ampersand in mysqlSo RAP3 can access mysqlUse phpmyadmin to do this.

Changes to Localsettings.php

  • Under RAP3 settings, change the path where ampersand can be found. On Remium, this will be C:\Users\ampersandadmin\AppData\Roaming\local\bin\ampersand.exe

Unfortunately, we ran into a bug with Graphviz. It seems, that graphviz doesn't run on windows server. For that reason, Remium doesn't work currently.