Comments (5)
I guess uWSGI overrides the create_app()
parameters and tries to concatenate them with the rest of the mysql-URI. Change the following line in __init__.py
:
def create_app(subdomain, username="", password=""):
to:
def create_app(subdomain, username="", password="", *args, **kwargs):
And try it again. If that fixes the uWSGI incompatibility, feel free to create a pull request for this.
from ctfd.
Interesting problem, I've never deployed with uwsgi before but I'll look into it.
from ctfd.
To work around the issue I'm running gunicorn as follows:
gunicorn -b 0.0.0.0:8080 "CTFd:create_app('')"
Running gunicorn without parameters in the create_app()
function results in
subdomain: <type 'dict'>
username: <type 'instancemethod'>
password:<type 'str'>
from ctfd.
This should really just be resolved with subdomain=""
in create_app.
from ctfd.
So deploying with uWSGI is a major headache but uwsgi --http-socket :80 -w CTFd:create_app()
will work. I'm going to close this and open a new issue discussing documentation.
from ctfd.
Related Issues (20)
- Dynamic challenges do not show a Next Challenge HOT 1
- Can not import when backup in CTFd Version 3.6 HOT 2
- Specific API Reacting to Authentication Header HOT 2
- S3 Uploader presigned url timestamp issue HOT 3
- Migrate away from freeze gun HOT 1
- Python error when accessing account info from admin panel HOT 1
- Plugin database migrations
- Disable empty string submission by default
- Import backup at the start of the app HOT 1
- Upload to S3 Failing HOT 9
- Preconfigure or automate installations of ctfd HOT 6
- 3.6.1 hints dont open in the challenges HOT 4
- Python package version conflicts HOT 5
- Cannot bundle the admin assets HOT 8
- Challenge Feedback
- Share Template Control
- Feature request - re-evaluate flag-attempts after the regex for a flag is updated during an event
- Custom on submit handler for challenges view
- 3.7.0 change of admin theme breaks backward compatibility HOT 1
- Exports should happen in background and be stored by CTFd as an upload
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ctfd.