Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: docker compose refusing to start #24565

Merged
merged 3 commits into from
Jun 30, 2023

Conversation

dpgaspar
Copy link
Member

@dpgaspar dpgaspar commented Jun 30, 2023

SUMMARY

Currently docker-compose up is refusing to start since debug is not enabled anymore.
We now use FLASK_DEBUG=true since FLASK_ENV is deprecated

This is a small fix for it

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@@ -46,7 +46,7 @@ case "${1}" in
celery --app=superset.tasks.celery_app:app beat --pidfile /tmp/celerybeat.pid -l INFO -s "${SUPERSET_HOME}"/celerybeat-schedule
;;
app)
echo "Starting web app..."
echo "Starting web app on debug..."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm probably missing something, but isn't this conditional on FLASK_DEBUG being set to true?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, but there's the debugger and the debug on flask
"The debugger is enabled by default when the development server is run in debug mode."

adding "debug" here is not correct, I want to differentiate between starting with Flask or gunicorn

@dpgaspar dpgaspar requested a review from villebro June 30, 2023 10:24
@dpgaspar dpgaspar merged commit c238d97 into apache:master Jun 30, 2023
@dpgaspar dpgaspar deleted the fix/docker-compose-debug branch June 30, 2023 10:55
@prakhyatc
Copy link

Insightful

@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 3.0.0 labels Mar 8, 2024
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 3.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants