First of all thanks for answering. This is the error that I get after
executing the command RAILS_ENV = production bundle exec rake canvas:
compile_assets.
Schema#resolve_type(type, obj, ctx) with 2 arguments is deprecated, it
now accepts 3 arguments, see:
/var/canvas/app/graphql/canvas_schema.rb:17:in `block in <top (required)>'
/var/canvas/vendor/bundle/ruby/2.4.0/gems/icalendar-1.5.4/lib/icalendar/conversions.rb:38:
warning: constant ::Fixnum is deprecated
/var/canvas/vendor/bundle/ruby/2.4.0/gems/icalendar-1.5.4/lib/icalendar/conversions.rb:44:
warning: constant ::Bignum is deprecated
/var/canvas/vendor/bundle/ruby/2.4.0/gems/ritex-1.0.1/lib/ritex/mathml/entities.rb:55:
warning: key "rightleftharpoons" is duplicated and overwritten on line
101
/var/canvas/vendor/bundle/ruby/2.4.0/gems/ritex-1.0.1/lib/ritex/mathml/entities.rb:178:
warning: key "eqslantgtr" is duplicated and overwritten on line 179
/var/canvas/vendor/bundle/ruby/2.4.0/gems/ritex-1.0.1/lib/ritex/mathml/entities.rb:225:
warning: key "ntrianglelefteq" is duplicated and overwritten on line
229
/var/canvas/vendor/bundle/ruby/2.4.0/gems/ritex-1.0.1/lib/ritex/mathml/entities.rb:244:
warning: key "nsupseteq" is duplicated and overwritten on line 245
/var/canvas/vendor/bundle/ruby/2.4.0/gems/ritex-1.0.1/lib/ritex/mathml/functions.rb:94:
warning: key "rowspan" is duplicated and overwritten on line 98
/var/canvas/vendor/bundle/ruby/2.4.0/gems/ritex-1.0.1/lib/ritex/mathml/functions.rb:93:
warning: key "colspan" is duplicated and overwritten on line 99
--> Starting: 'css:compile'
--> no DB connection, skipping generation of brand_config files
rake aborted!
BrandableCSS::DefaultMD5NotUpToDateError:
You have made changes to either
app/stylesheets/brandable_variables.json or one of the images it
references so you need to rename the db migrations that makes sure
when this change is deployed it
makes a new .css file for the css variables for each brand based on
these new defaults.
To do that, run this command and then restart your rails process. (for
local dev, if you want the
changes to show up in the ui, make sure you also run `rake db:migrate`).
mv db/migrate/*_regenerate_brand_files_based_on_new_defaults_predeploy.rb \
db/migrate/940701317156510265337_regenerate_brand_files_based_on_new_defaults_predeploy.rb
\
&& \
mv db/migrate/*_regenerate_brand_files_based_on_new_defaults_postdeploy.rb \
db/migrate/940701317156510265338_regenerate_brand_files_based_on_new_defaults_postdeploy.rb
FYI, current variables are: {"ic-brand-primary"=>"#008EE2",
"ic-brand-font-color-dark"=>"#2D3B45", "ic-link-color"=>"#008EE2",
"ic-brand-button--primary-bgd"=>"$ic-brand-primary",
"ic-brand-button--primary-text"=>"#ffffff",
"ic-brand-button--secondary-bgd"=>"#2D3B45",
"ic-brand-button--secondary-text"=>"#ffffff",
"ic-brand-global-nav-bgd"=>"#394B58",
"ic-brand-global-nav-ic-icon-svg-fill"=>"#ffffff",
"ic-brand-global-nav-ic-icon-svg-fill--active"=>"$ic-brand-primary",
"ic-brand-global-nav-menu-item__text-color"=>"#ffffff",
"ic-brand-global-nav-menu-item__text-color--active"=>"$ic-link-color",
"ic-brand-global-nav-avatar-border"=>"#ffffff",
"ic-brand-global-nav-menu-item__badge-bgd"=>"$ic-brand-primary",
"ic-brand-global-nav-menu-item__badge-text"=>"#ffffff",
"ic-brand-global-nav-logo-bgd"=>"#394B58",
"ic-brand-header-image"=>"/dist/images/canvas_log...@2x-5b9973a671.png",
"ic-brand-watermark"=>"", "ic-brand-watermark-opacity"=>"1.0",
"ic-brand-favicon"=>"/dist/images/favicon-7b7c85bb00.ico",
"ic-brand-apple-touch-icon"=>"/dist/images/apple-touch-icon-1635c017d8.png",
"ic-brand-msapplication-tile-color"=>"$ic-brand-primary",
"ic-brand-msapplication-tile-square"=>"/dist/images/windows-tile-f2359ad914.png",
"ic-brand-msapplication-tile-wide"=>"/dist/images/windows-tile-wide-52212226d6.png",
"ic-brand-right-sidebar-logo"=>"",
"ic-brand-Login-body-bgd-color"=>"#394B58",
"ic-brand-Login-body-bgd-image"=>"",
"ic-brand-Login-body-bgd-shadow-color"=>"#2D3B45",
"ic-brand-Login-logo"=>"/dist/images/login/canvas-logo-a66b946d8d.svg",
"ic-brand-Login-Content-bgd-color"=>"none",
"ic-brand-Login-Content-border-color"=>"none",
"ic-brand-Login-Content-inner-bgd"=>"none",
"ic-brand-Login-Content-inner-border"=>"none",
"ic-brand-Login-Content-inner-body-bgd"=>"none",
"ic-brand-Login-Content-inner-body-border"=>"none",
"ic-brand-Login-Content-label-text-color"=>"#ffffff",
"ic-brand-Login-Content-password-text-color"=>"#ffffff",
"ic-brand-Login-footer-link-color"=>"#ffffff",
"ic-brand-Login-footer-link-color-hover"=>"#ffffff",
"ic-brand-Login-instructure-logo"=>"#ffffff"}
/var/canvas/lib/brandable_css.rb:133:in `block in
check_if_we_need_to_create_a_db_migration'
/var/canvas/lib/brandable_css.rb:129:in `each'
/var/canvas/lib/brandable_css.rb:129:in
`check_if_we_need_to_create_a_db_migration'
/var/canvas/lib/brandable_css.rb:145:in `default_variables_md5'
/var/canvas/lib/brandable_css.rb:231:in `default_brand_file'
/var/canvas/lib/brandable_css.rb:249:in `save_default!'
/var/canvas/lib/brandable_css.rb:255:in `block (2 levels) in
save_default_files!'
/var/canvas/lib/brandable_css.rb:255:in `each'
/var/canvas/lib/brandable_css.rb:255:in `block in save_default_files!'
/var/canvas/lib/brandable_css.rb:254:in `each'
/var/canvas/lib/brandable_css.rb:254:in `save_default_files!'
/var/canvas/lib/tasks/css.rake:22:in `block (3 levels) in <top (required)>'
/var/canvas/lib/tasks/css.rake:16:in `block (2 levels) in <top (required)>'
/var/canvas/lib/tasks/canvas.rake:40:in `block (2 levels) in <top (required)>'
/var/canvas/vendor/bundle/ruby/2.4.0/gems/rake-12.2.1/exe/rake:27:in
`<top (required)>'
Tasks: TOP => css:compile
(See full trace by running task with --trace)
Attentively Norge