Skip to content

morriell/summer_school

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

summer_school

A cool site on flask for advertaising courses for summer school 1505, year 2020.

Create a MySQL DB and fill in it's credentials in config.py The schema of DB may be recreated from schema.sql

Install pip and create a virtual env. I've called it SummerSchool so this name is used further. Install uwsgi, mysql-connector and jsonify with pip install.

Venvconf:

Package Version
click 7.1.2
Flask 1.1.2
itsdangerous 1.1.0
Jinja2 2.11.2
jsonify 0.5
MarkupSafe 1.1.1
mysql-connector 2.2.9
pip 20.1.1
pkg-resources 0.0.0
setuptools 20.7.0
uWSGI 2.0.18
Werkzeug 1.0.1

Start venv:

    source SummerSchool/bin/activate

Place deploy\_configs/uwsgi.ini to /etc/uwsgi.ini

Place deploy\_configs/SummerSchool.conf to nginx conf folder (e.g. /etc/nginx/sites-enabled/SummerSchool.conf)

Place static files compiled by react to courses/static. Remember to leave courses/static/pictures folder on place!

Remember to chown all files in a folder to www-data

To start server:

   uwsgi --ini /etc/uwsgi.ini &

To kill server:

    killall uwsgi -9

About

A simple one-page site with course description

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published