Open arkangel1611 opened 5 years ago
Thanks for contributing to this issue. As it has been 2 years since the last activity, we are automatically closing the issue in 30 days. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please respond before the issue is closed, or post a message on the mailing list. We'll gladly take a look again!
I got one issue while bundle exec rails db:initial_setup == RegenerateBrandFilesBasedOnNewDefaultsPredeploy: migrating ================ rails aborted! StandardError: An error has occurred, this and all later migrations canceled:
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/92630630174579589147_regenerate_brand_files_based_on_new_defaults_predeploy.rb \ && \ mv db/migrate/_regenerate_brand_files_based_on_new_defaults_postdeploy.rb \ db/migrate/92630630174579589148_regenerate_brand_files_based_on_new_defaults_postdeploy.rb
I had made no changes in the existing code.. still i got this and when i executed mv db/migrate/_regenerate_brand_files_based_on_new_defaults_predeploy.rb \ db/migrate/92630630174579589147_regenerate_brand_files_based_on_new_defaults_predeploy.rb \ && \ mv db/migrate/_regenerate_brand_files_based_on_new_defaults_postdeploy.rb \ db/migrate/92630630174579589148_regenerate_brand_files_based_on_new_defaults_postdeploy.rb
bundle exec rails db:initial_setup was completed successfully...
But again while bundle exec rails canvas:compile_assets i got this notification 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/75072935522965904110132_regenerate_brand_files_based_on_new_defaults_predeploy.rb \ && \ mv db/migrate/_regenerate_brand_files_based_on_new_defaults_postdeploy.rb \ db/migrate/75072935522965904110133_regenerate_brand_files_based_on_new_defaults_postdeploy.rb
So i again executed mv db/migrate/_regenerate_brand_files_based_on_new_defaults_predeploy.rb \ db/migrate/75072935522965904110132_regenerate_brand_files_based_on_new_defaults_predeploy.rb \ && \ mv db/migrate/_regenerate_brand_files_based_on_new_defaults_postdeploy.rb \ db/migrate/75072935522965904110133_regenerate_brand_files_based_on_new_defaults_postdeploy.rb
After this bundle exec rails canvas:compile_assets was completed successfuly..
Config: Ubuntu:18.04 Ruby-2.4 Postgres-10 Yarn-1.10.1 Bundler-1.15.0