-
SSH into server as root (if no user with superuser privileges exists)
-
Install and configure ngnix on your server. Digitaloceans tutorials may help.
-
Create an account with superuser privileges if not yet existing:
$ adduser <username>
$ usermod -aG sudo <username>
$ su <username>
- Clone the code and start the deployment script! Ensure beforehand that the user account and the URL are still matching!
$ cd ~
$ git clone https://github.com/Zethson/igem_tuebingen_website
Substitute the URL given in igem_tuebingen_website/production_setup/igem_tuebingen_website with your domains.
Substitute the username in the igem_tuebingen_website/production_setup/igem_tuebingen_website.service file.
You may need to substitute the port.
Rename the username given in the igem_tuebingen_website/production_setup/setup.sh script to match your home folder.
$ sudo bash igem_tuebingen_website/production_setup/setup.sh