mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47:14 +00:00
Adds asset precompilation instructions to doc/INSTALL and doc/UPGRADING (#41754).
Patch by Marius BĂLTEANU (user:marius.balteanu) and Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23383 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
5a20f489b3
commit
f3509b504b
28
doc/INSTALL
28
doc/INSTALL
@ -55,14 +55,34 @@ The current version of Firefox, Safari, Chrome, Chromium and Microsoft Edge.
|
||||
Alternatively, you can store this secret in config/secrets.yml:
|
||||
https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#config-secrets-yml
|
||||
|
||||
6. Create the database structure
|
||||
6. 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 in the 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"
|
||||
|
||||
7. Create the database structure
|
||||
|
||||
Under the application main directory run:
|
||||
bundle exec rake db:migrate RAILS_ENV="production"
|
||||
|
||||
It will create all the tables and an administrator account.
|
||||
|
||||
7. Setting up permissions (Windows users have to skip this section)
|
||||
8. Setting up permissions (Windows users have to skip this section)
|
||||
|
||||
The user who runs Redmine must have write permission on the following
|
||||
subdirectories: files, log, tmp & public/assets.
|
||||
@ -71,7 +91,7 @@ The current version of Firefox, Safari, Chrome, Chromium and Microsoft Edge.
|
||||
sudo chown -R redmine:redmine files log tmp public/assets
|
||||
sudo chmod -R 755 files log tmp public/assets
|
||||
|
||||
8. Test the installation by running the Puma web server
|
||||
9. Test the installation by running the Puma web server
|
||||
|
||||
Under the main application directory run:
|
||||
ruby bin/rails server -e production
|
||||
@ -79,7 +99,7 @@ The current version of Firefox, Safari, Chrome, Chromium and Microsoft Edge.
|
||||
Once Puma has started, point your browser to http://localhost:3000/
|
||||
You should now see the application welcome page.
|
||||
|
||||
9. Use the default administrator account to log in:
|
||||
10. Use the default administrator account to log in:
|
||||
login: admin
|
||||
password: admin
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user