Sassafras fork of Redmine: a flexible project management web application written using Ruby on Rails framework.
More details can be found in the doc directory or on the official website here.
Upstream changelog is here.
Official, detailed instructions can be found in the INSTALL file. However, most of what you need for Sassafras should be here.
Official upgrade steps between major versions are documented here.
Multiple environments (e.g. production/development) are NOT well supported. It's recommended to do this setup using production only.
-
Install mysql and link it to make sure the ruby gem finds it:
# For OSX (homebrew) brew install mysql mysql-client # Then do what it says, e.g.: echo 'export PATH="/opt/homebrew/opt/mysql-client/bin:$PATH"' >> ~/.zshrc brew services start mysql bundle install # OR: gem install mysql2 -v 0.5.7 -- --with-mysql-config=$(brew --prefix mysql-client)/bin/mysql_config
-
Copy config files:
cp config/database.yml{.example,} cp config/configuration.yml{.example,} cp config/additional_environment.rb{.example,} -
Edit
config/database.ymlif needed; should be fine by default -
Install bundler:
gem install bundler -
Install dependencies:
bundle install# Or optionally:bundle install --without rmagick -
Make sure a secret is set:
bundle exec rake generate_secret_token# Is this format old? -
If there's old data you want to purge:
mysql -u root -e "drop database redmine_development;" -
Do some initialization:
bundle exec rake db:create bundle exec rake db:migrate bundle exec rake redmine:plugins:migrate # This will fail for old plugins, you need to modify the source code in to change old "ActiveRecord::Migration" to "ActiveRecord::Migration[4.2]" bundle exec rake redmine:load_default_data # Follow prompts
-
If it fails, you may need to ensure file ownership, e.g.:
sudo chown -R redmine:redmine files log tmp public/plugin_assets -
Verify it works:
bundle exec rails s -e production- Open http://localhost:3000/
- Sign in with credentials
admin/admin(requires reset on first login)
-
Configure settings in your browser, e.g. the Sassafras theme at http://localhost:3000/settings?tab=display
- Watch for changes with
bundle exec rerun --dir app,config,plugins,public rails s -- -e production- Note: if you try to refresh the page before it's ready you'll break things and see
Cannot GET /route; simply restart the server in this case (hotkey:r)
- Note: if you try to refresh the page before it's ready you'll break things and see
If you want to mirror the live database, download a dump and then:
mysql -u root redmine < dump.sql
See Redmine tutorial for more info.
-
Put any plugins in the
plugins/directory, e.g. for GreenMachine:cd plugins git clone git@github.com:sassafrastech/greenmachine.git -
Install new dependencies as usual (from project root, not plugins root):
bundle install -
Restart the server for plugins to take effect
For GreenMachine specifically, docs are here.
-
Put any themes in the
themes/directory, e.g. for Sassafras:cd themes git clone https://github.com/sassafrastech/redmine-circle-theme.git sassafras -
Restart the server for themes to be available
For the Sassasfras theme specifically, docs are here.
sudo adduser deploy- Add SSH keys to the deploy user also
- Follow https://www.phusionpassenger.com/docs/advanced_guides/install_and_upgrade/ instructions to install Passenger
- Their docs are a bit outdated, make sure to replace
jammy(Ubuntu 22) with e.g.resolute(Ubuntu 26) in/etc/apt/sources.list.d/passenger.listbased on your Ubuntu version. - Also
sudo apt install libnginx-mod-http-passenger
- Their docs are a bit outdated, make sure to replace
- Follow https://mariadb.com/docs/server/mariadb-quickstart-guides/installing-mariadb-server-guide instructions to install MariaDB
- Initialize the database using the redmine guide: https://www.redmine.org/projects/redmine/wiki/RedmineInstall
- Follow https://github.com/rbenv/rbenv instructions to:
- Install rbenv (don't use apt, use git on the deploy user)
- Install the ruby version specified in
.ruby-version(on deploy user)
- Copy over the
sharedfolder if there's an existing server to migrate - Follow the steps below to deploy the code initially
- Import a database dump:
mysql -u root redmine < dump.sql
See full upgrade guide: https://www.redmine.org/projects/redmine/wiki/RedmineUpgrade
- Locally: Push changes to github
- On server plugins/themes directories:
git pullany changes manually - Locally:
bundle exec cap production deploy- Choose a branch (enter to select default)
- Remove from database:
bundle exec rake redmine:plugins:migrate NAME=foo VERSION=0 RAILS_ENV=production - Remove from disk:
rm -rf plugins/foo/