App: Deployment manual
This document describes deployment of the combination of three DiSARM services: app (v2), editor, and server (v8).

Prerequisites:

Server running with:

Overview

It’s possible to deploy the services almost anywhere, so long as the app and editor are configured to point to the server’s URL, and the two frontend services are available via HTTPS (required for browser functionality). Configuration of the DNS and web servers, etc is not covered in these instructions.
The README.md in each repo contains more detailed instructions for each service.

Deploy disarm-server

    1.
    Clone the repo: git clone https://github.com/disarm-platform/disarm-server
    2.
    Checkout the develop-v8 branch
    3.
    Install dependencies
    4.
    Configure DNS
    5.
    Start server running (consult README.md) for info and options: e.g. SECRET=secret MONGODB_URI=mongodb://localhost:27017 PORT=3001 npm start

Deploy disarm-app

    1.
    Clone the repo: git clone https://github.com/disarm-platform/disarm-app
    2.
    Checkout the develop-v2.x branch
    3.
    Edit the server URL property in src/config/common.js to point to the configured server above
    4.
    Install dependencies: npm install
    5.
    Build the app: npm run build
    6.
    Configure DNS

Deploy disarm-editor

    1.
    Clone the repo: git clone https://github.com/disarm-platform/disarm-editor
    2.
    Checkout the develop branch
    3.
    Edit the server URL property in src/lib/common.ts to point to the configured server above
    4.
    Install dependencies: npm install
    5.
    Build the app: npm run build
    6.
    Configure DNS

Example Caddy config

1
# app
2
app.example.com {
3
root disarm-app/dist
4
rewrite / {
5
ext /
6
to {path} /index.html
7
}
8
timeouts {
9
read 1m
10
}
11
log access.log
12
gzip
13
}
14
15
# editor
16
editor.example.com {
17
root disarm-editor/dist
18
rewrite / {
19
ext /
20
to {path} /index.html
21
}
22
timeouts {
23
read 1m
24
}
25
log access.log
26
gzip
27
}
Copied!
Last modified 4d ago