IP address - http://178.62.15.240:8000/
I installed the Digital Ocean Droplet using these instructions
Update all currently installed packages
sudo apt-get update && sudo apt-get upgrade
Configured the firewalls to accept various ssh ports including 22, and 2200 using the digital oceans interface.
Create a new user account named grader.
sudo adduser grader
Give grader the permission to sudo.
sudo nano /etc/sudoers.d/grader
Add the following below root ALL=(ALL:ALL) ALL
grader ALL=(ALL:ALL) ALL
Create an SSH key pair for grader using the
ssh-keygen
Install prerequisites for running a wsgi project 1.Apache
sudo apt-get install apache2
- mod_wsgi
sudo apt-get install libapache2-mod-wsgi-py3
- postresql
sudo apt-get install postresql
- Install git and clone project in /var/www/
sudo apt-get install git
- Install flask and the other application's dependencies using pip
- Rename views.py to init.py and change the host to the server's IP address
- Create catalog.wsgi in /var/www/catalog
import sys
import logging
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0, "/var/www/catalog/")
from catalog import app as application
application.secret_key = 'supersecretkey'