Skip to content

Conversation

lanjelot
Copy link
Collaborator

@lanjelot lanjelot commented Apr 23, 2021

CTFPad can now run with DEBUG turned off.

Before it was always running with settings.DEBUG set to True due to passing the env var DEBUG=0 in https://github.com/hugsy/ctfpad/blob/master/docker-compose.yml#L62 or in https://github.com/hugsy/ctfpad/blob/master/Dockerfile#L6 which makes the settings.DEBUG variable truthy at https://github.com/hugsy/ctfpad/blob/master/ctftools/settings.py#L28 because DEBUG = os.getenv('DEBUG') or False actually becomes DEBUG='0' and bool('0') -> True :)

As a result, static files were not working when turning off debug. This should be now all fixed up.

@lanjelot
Copy link
Collaborator Author

lanjelot commented Apr 24, 2021

Just rebased this branch so it now has no conflicts with master.
Also sorry i wasn't very clear above so I updated the explanation.
Hope it all now makes sense :)

@hugsy hugsy merged commit dbce446 into master Apr 26, 2021
@hugsy hugsy mentioned this pull request May 5, 2021
@hugsy hugsy deleted the fix-static branch June 28, 2022 16:34
@hugsy hugsy added this to the 0.1 milestone Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants