Fixoutdated#23
Open
stuartf wants to merge 11 commits into
Open
Conversation
Member
Author
|
I think I got that as well but that it resolved itself after restarting the container. I'm not sure if there's a better way to fix it. |
Member
|
whoa that actually worked for me too. weird... i mean, working in some capacity is better than not working at all, so I'll probably mrege this. Would you mind adding a big, attention-getting note to the readme that mentions the need for this container restart? |
Author
|
I've added a healthcheck that notices when the landing page is returning a 500 error and restarts the canvas_web service in supervisord |
DWagenaar
reviewed
Nov 2, 2021
| && /opt/canvas/.gem/ruby/2.7.0/bin/bundle _2.2.19_ exec rake db:initial_setup | ||
|
|
||
| psql -U canvas -d canvas_development -c "INSERT INTO developer_keys (api_key, email, name, redirect_uri) VALUES ('test_developer_key', 'canvas@example.edu', 'Canvas Docker', 'http://localhost:8000');" | ||
| psql -U canvas -d canvas_development -c "INSERT INTO developer_keys (api_key, email, name, redirect_uri, root_account_id, access_token_count) VALUES ('test_developer_key', 'canvas@example.edu', 'Canvas Docker', 'http://localhost:8000', 1, 1);" |
There was a problem hiding this comment.
Ran into a build error during dbinit due to missing timestamps, but worked like a charm after the following change:
Suggested change
| psql -U canvas -d canvas_development -c "INSERT INTO developer_keys (api_key, email, name, redirect_uri, root_account_id, access_token_count) VALUES ('test_developer_key', 'canvas@example.edu', 'Canvas Docker', 'http://localhost:8000', 1, 1);" | |
| psql -U canvas -d canvas_development -c "INSERT INTO developer_keys (api_key, email, name, redirect_uri, root_account_id, access_token_count, created_at, updated_at) VALUES ('test_developer_key', 'canvas@example.edu', 'Canvas Docker', 'http://localhost:8000', 1, 1, NOW(), NOW());" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Updates to use more recent versions of build tools, the old versions can no longer build canvas-lms. Also fixes for docker image bloat/slowdown caused by using
chown -R