Install:
./prepare.sh
to install dependencies using apt.- Modify CTFd/config.py to your liking.
- Use
python serve.py
in a terminal to drop into debug mode. - Here are some deployment options
Install gunicorn from apt repository: sudo apt-get install gunicorn Create gunicorn config file for CTFd: sudo vim /etc/gunicorn.d/ctfd CONFIG = { 'mode': 'wsgi', 'working_dir': '/home/ubuntu/CTFd', 'python': '/usr/bin/python', 'user': 'ubuntu', 'group': 'ubuntu', 'args': ( '--bind=0.0.0.0:8000', '--workers=1', '--umask=0027', '--log-level=info', '--access-logfile=/var/log/gunicorn/ctfd_access.log', 'CTFd:create_app()', ), }
service gunicorn start