Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 938 Bytes

DEPLOYING.md

File metadata and controls

39 lines (28 loc) · 938 Bytes

Deploying

Session Server

  1. Set up an Ubuntu server that you may SSH into.

    Add the following to ~/.ssh/config:

    Host will_server
      HostName 52.22.144.29
      User ubuntu
      IdentityFile ~/.ssh/your_private_key
    
  2. Copy across the session sever binary and accompanying files.

    scp ./target/release/session_server will_server:/home/ubuntu
    scp ./app/session_server/session_server.service will_server:/home/ubuntu
    scp ./app/session_server/logger.yaml  will_server:/home/ubuntu
  3. Log into the server, and set up the session_server service.

    # Log in
    ssh will_server

    Then

    sudo mv /home/ubuntu/session_server.service /etc/systemd/system/
    sudo systemctl start session_server
    sudo systemctl enable session_server