Start
Once you have GAMS MIRO Server installed, you can launch
it via
> ./miro-server start.
GAMS MIRO Server will now listen on port 8080 and the
MIRO Server REST API on
port 8081 . You can log in with any GAMS Engine user who
either has some permission or can see models in the
specified namespace. Users without permissions in the
namespace can see a model if they can see a user group
associated with that model.
To directly access a MIRO application that has been added
to MIRO Server, go to
/app_direct/<appId>, where
appId is the lowercase name of your main gms
file per default.
Stop
To stop a running instance of GAMS MIRO Server, run
> ./miro-server stop
Restart
To perform a restart, run
> ./miro-server restart
Note that if you make changes to the
docker-compose.yml file these changes are not
reflected after running this command. In such a case do a
./miro-server stop and
./miro-server start.
Update
To update GAMS MIRO Server to the latest version, run
> ./miro-server update
Note that this will pull new images from
Docker Hub
and launch them. If you only want to pull new images, run
> ./miro-server pull
Backup (Linux only)
To backup GAMS MIRO Server, run
> ./miro-server backup
This creates a new ./backup directory in the
current directory. A MIRO backup consists of two files:
./backup/dump_db_${BACKUP_TIME}.gz and
./backup/dump_miro_server_${BACKUP_TIME}.gz
with a backup of the MIRO PostgreSQL database and the
current directory respectively.
BACKUP_TIME is a timestamp with the following
format: %d-%m-%Y_%H_%M_%S.
Restore (Linux only)
To restore GAMS MIRO Server from a backup created with
the
./miro-server backup command, first unzip a
new miro_server.zip and navigate to the
miro_server directory. Next, copy the
backup directory with your backup files into
this directory and run
> ./miro-server restore BACKUP_TIME
where BACKUP_TIME is the backup timestamp in
the form: %d-%m-%Y_%H_%M_%S (e.g.
01-04-2022_19_13_41 for April 1, 2022,
19:13:41).
Uninstall
To remove GAMS MIRO Server including all data associated
with it from your server, run
> ./miro-server uninstall
Additionally, you can remove the directory where you
extracted the configuration files of the GAMS MIRO
Server.