I tried to host the SQLMap API on my Ubuntu server using this command
gunicorn --bind 127.0.0.1:8775 --workers 5 --worker-class gevent --timeout 300 --access-logfile - --error-logfile - sqlmapapi:main
I tried other files bottle.py and api.py but I am getting Internal Server Error.
But when I am running it with the below command it works
python sqlmapapi.py -s
I'm not sure what's a good solution to this problem.
I tried
gunicorn --bind 127.0.0.1:8775 --workers 5 --worker-class gevent --timeout 300 --access-logfile - --error-logfile - sqlmapapi:maingunicorn --bind 127.0.0.1:8775 --workers 5 --worker-class gevent --timeout 300 --access-logfile - --error-logfile - sqlmapapi:servergunicorn --bind 127.0.0.1:8775 --workers 5 --worker-class gevent --timeout 300 --access-logfile - --error-logfile - bottle:app