Skip to content
New issue

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

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

Already on GitHub? # to your account

Management command does not work for Heroku #14

Open
jplehmann opened this issue Aug 16, 2015 · 1 comment
Open

Management command does not work for Heroku #14

jplehmann opened this issue Aug 16, 2015 · 1 comment

Comments

@jplehmann
Copy link

This is not a bug but a limitation of the current system. That is heroku depoloyments cannot benefit from the approach being used with the management on|off command.

Any execution of heroku run manage.py will be run on a separate worker dyno, not the web one. Therefore the lockfile is set but on the wrong machine.

It would be nice to have a dynamic approach that works for Heroku. It seems like the most obvious thing is to maintain the flag in a DB table instead of in the filesystem.

Another possible workaround is providing a a staff-authenticated URL route which togged the maintenance status by adding/removing the file.

@bashu bashu self-assigned this Aug 17, 2015
@JakeAustwick
Copy link

+1 for this, or at least mention in the README that it isn't Heroku-friendly.

@bashu bashu unassigned bashu Jan 11, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants