Skip to content

yuantailing/cgserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

cgserver

CSCG server list

Usage

Server side

pip3 install -r requirements.txt
cp cgserver/settings.py.sample cgserver/settings.py
chmod 600 cgserver/settings.py
cp serverlist/scripts/add_clients.py.sample serverlist/scripts/add_clients.py

Then

python3 manage.py migrate
python3 manage.py runscript add_clients
python3 manage.py collectstatic
python3 manage.py runserver

You may run python3 manage.py createsuperuser to add an administrator.

Client side

pip3 install -r requirements.txt
cp settings.py.sample settings.py
chmod 600 settings.py

Add report.py to crontab, using crontab -e is recommended, for example:

*/15 *	* * *	cd /path/to/cgserver/client-side && /usr/bin/python3 report.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •