Skip to content
/ notes Public

Twitter like web-site I've been playing with

Notifications You must be signed in to change notification settings

JWT95/notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notes Website

Test Website for playing around with, inspired by the Django Tutorial.

Test code. Do not use in production.

Instructions

Instructions for running on a VM

Get files onto the machine

  • Spin up VM with port 80 exposed
  • Copy these files onto the VM
  • Use python virtual-env to use python3 if needs be

Set up nginx

  • Install nginx: sudo apt install nginx-core
  • Copy nginx.conf file to /etc/nginx/conf.d/nginx.conf
  • Delete the competing file at: /etc/nginx/sites-enabled/default
  • Reload nginx: nginx -s reload

Set up Prometheus and Grafana

The nginx setup means that Prometheus and Grafana can be accessed via port 80 on paths /prometheus and /grafana respectively.

To set Prometheus and Grafana up you need to do the following:

Run an Azure App Services

Follow this guide to install / update the code as a webapp.

Note that Azure does not run migrate the db when it runs the app so you either need to migrate locally and upload the sqllite database or run python manage.py migrate in the webssh portal.

About

Twitter like web-site I've been playing with

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published