Skip to content

OpenBSD Deployment

Nathan Vasquez edited this page Jun 14, 2022 · 7 revisions

This page covers how to access the OpenBSD Deployment on one of our private servers.

This can only be done if you are authorized via RSA.

Instructions

  1. Access the server via ssh.

  2. Attach to (or create) a session::

    tmux attach
    

    If no sessions are found, then simply create a new one:

    tmux
    
  3. Activate the local virtual environment::

    . ~/venvs/bobchat/bin/activate
    
  4. Host the server through uwsgi::

    cd /var/www/bobchat
    git pull
    uwsgi --fastcgi-socket localhost:3031 --wsgi-file wsgi.py --callable app
    

note: uwsgi and git pull both need to be able to edit data under /var/www/. The approach we took to address this is simply run everything as su which is likely a terrible solution so if you have any suggestion feel free to reach out and thanks in advance.

Clone this wiki locally