Client MAIN of the Mobashi system.
To build a new version of the frontend files, run the following commands:
docker compose build --build-arg BASE_HREF="/ui/"
docker compose up -d
docker cp mobashi-main-ui:/app/www /var/local/mnt/mobashi-main-ui
docker compose down
docker compose run mobashi-main-ui /bin/bash
After the build terminate, the fronted files are available inside directory:
Arguments BASE_HREF and BASE_DIRECTORY must be set along the configuration of the Web server, installed the host machine, that is going to serve the frontend files.
If not given, default values are used as shown above (see inside docker-compose.yml file).
For example (using Nginx):
location /ui/ {
/var/local/mnt/mobashi-main-ui
}
In case of problems while running from VSCode, use the following command:
npx ionic serve --no-open --external --port=4100 --configuration=development