-
Notifications
You must be signed in to change notification settings - Fork 46
Fixoutdated #23
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
base: master
Are you sure you want to change the base?
Fixoutdated #23
Conversation
|
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. |
|
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? |
|
I've added a healthcheck that notices when the landing page is returning a 500 error and restarts the canvas_web service in supervisord |
assets/dbinit.sh
Outdated
| && /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', '[email protected]', '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', '[email protected]', 'Canvas Docker', 'http://localhost:8000', 1, 1);" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran into a build error during dbinit due to missing timestamps, but worked like a charm after the following 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', '[email protected]', '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', '[email protected]', 'Canvas Docker', 'http://localhost:8000', 1, 1, NOW(), NOW());" |

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