Skip to content

6. How to setup Sema on my own web server?

Francisco Bernardo edited this page Dec 4, 2020 · 1 revision

This page provides a step-by-step tutorial on how to setup Sema on your own server.

Pre-requisites

Things that you need to have installed in your server.

Walkthrough

Access your server via ssh and authenticate

$ ssh your-server-url

Go to your apache web space directory /var/www/

and git clone sema's github repository into that directory

$ git clone https://github.com/mimic-sussex/sema.git

Once you have the repo cloned into you server, use yarn so that it installs all the node package dependencies into the .node_modules folder.

Next, you build sema for production, which generates the deployment folder public

$ yarn build

Finally, move all content of the public folder to the root of the directory from which you want to serve sema:

$ mv public/* /var/www/NAME-OF-THE-DIRECTORY

If your Apache web server is running, you should be able to access it through the URL that you have mapped to that directory