- Plesk Onyx for Linux
- Plesk Onyx for Windows
How to deploy Ruby on Rails application Redmine in Plesk?
Note: Redmine is a 3rd-party application. If you encounter any issues during Redmine deployment, please refer to Redmine forums for assistance.
The steps below were tested on Plesk Onyx 17.8 for CentOS 7 with default system package repositories.
Install the Plesk component Tools required for building Ruby gems via Plesk Installer.
Download the latest available version of Redmine in a .zip file at www.redmine.org to your PC/MAC.
In Plesk, go to Domains > example.com > File Manager and upload the .zip file from step 2 to the httpdocs directory.
Note: We recommend to remove all default files from the httpdocs directory to avoid file name conflicts.
Select the checkbox next to the uploaded .zip file > click > OK.
Open the unzipped redmine-X.X.X directory > select all items > click and transfer these items to the httpdocs directory.
Go to example.com > Databases and create a new database (For example, redmine) with a database user.
Go back to File Manager > open the config directory and rename database.yml.example to database.yml ( > Rename).
Open the database.yml file and update the database information specifying a correct database name, username and password in the "production" section. Once finished, click OK.
Note: In some cases, Redmine will not start up if the "development" section is not filled in. Update the same information under the "development" section.
Go to Domains > example.com > Ruby.
Set Application Root to httpdocs.
Select a required Ruby version. For example, if Redmine version is 3.4, set Ruby version to 2.4. For more Ruby versions, visit this Redmine documentation page.
Click Enable Ruby.
Click Bundle install (Installation might take several minutes to complete).
Click Run rake task:
generate_secret_tokento the Task parameters field and click Run.
RAILS_ENV=production db:migrateto the Task parameters field and click Run.
RAILS_ENV=production REDMINE_LANG=en redmine:load_default_datato the Task parameters field and click Run.
14.4. Close the window.
Open your website in a web-browser and sign in to Redmine administration panel with default login and password (admin/admin).
Note: Language for the admin user can be changed at My Account > Language.