From 06964783224f973cbdcd9d91e978a9272a803d6f Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Wed, 11 Dec 2024 00:05:11 +0000 Subject: Merge r23383 from trunk to 6.0-stable (#41754). git-svn-id: https://svn.redmine.org/redmine/branches/6.0-stable@23384 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- doc/UPGRADING | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'doc/UPGRADING') diff --git a/doc/UPGRADING b/doc/UPGRADING index ea3548719..091b86283 100644 --- a/doc/UPGRADING +++ b/doc/UPGRADING @@ -56,7 +56,27 @@ https://www.redmine.org/ DO NOT REPLACE OR EDIT ANY OTHER FILES. -7. Migrate your database +7. Compile assets (optional) + + Compile the assets such as stylesheets, javascripts and images into the public/assets + directory for web server delivery. + + By default, Redmine automatically recompiles assets in production mode when the application starts. + This behavior can be controlled using the "config.assets.redmine_detect_update flag" from configuration file. + + To manually compile assets or if automatic compilation is disabled: + + using: + bundle exec rake assets:precompile RAILS_ENV="production" + + If deploying to a sub-uri, set the relative URL root as follows: + bundle exec rake assets:precompile RAILS_ENV="production" RAILS_RELATIVE_URL_ROOT=/sub-uri + + If you experience issues with missing assets in the browser, try + removing the public/assets directory before re-running the precompile: + bundle exec rake assets:clobber RAILS_ENV="production" + +8. Migrate your database If you are upgrading to Rails 2.3.14 as part of this migration, you need to upgrade the plugin migrations before running the plugin migrations @@ -71,12 +91,12 @@ https://www.redmine.org/ migrations using: bundle exec rake db:migrate_plugins RAILS_ENV="production" -8. Clear the cache and the existing sessions by running: +9. Clear the cache and the existing sessions by running: bundle exec rake tmp:cache:clear tmp:sessions:clear -9. Restart the application server (e.g. mongrel, thin, passenger) +10. Restart the application server (e.g. mongrel, thin, passenger) -10. Finally go to "Administration -> Roles & permissions" to check/set permissions +11. Finally go to "Administration -> Roles & permissions" to check/set permissions for new features, if any == References -- cgit v1.2.3