Skip to content

Jabrahamjohn/Linux-Server-Configuration-master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Linux-Server-Configuration

IP address - http://178.62.15.240:8000/

Get your server

I installed the Digital Ocean Droplet using these instructions

Secure your server

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.

Give grader access.

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

Deploy Project

Install prerequisites for running a wsgi project 1.Apache

sudo apt-get install apache2
  1. mod_wsgi
sudo apt-get install libapache2-mod-wsgi-py3
  1. postresql
sudo apt-get install postresql
  1. Install git and clone project in /var/www/
sudo apt-get install git
  1. Install flask and the other application's dependencies using pip
  2. Rename views.py to init.py and change the host to the server's IP address
  3. 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'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published