-
Notifications
You must be signed in to change notification settings - Fork 51
6. How to setup Sema on my own web server?
This page provides a step-by-step tutorial on how to setup Sema on your own server.
Things that you need to have installed in your server.
-
Yarn
-
Node version 14.4.0 LTS
-
Apache Web Server
-
Routify configuration for Apache: https://routify.dev/examples/apache-config
-
Node application monitor: nodemon
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