Skip to content

Instantly share code, notes, and snippets.

@thanhhh
Last active March 11, 2024 12:23
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save thanhhh/5610659 to your computer and use it in GitHub Desktop.
Save thanhhh/5610659 to your computer and use it in GitHub Desktop.
How to configuration Redmine with puma and running on nginx (based on Gitlab's installation)
Add config/puma.ruby
--------------------
cd /home/redmine/redmine
sudo -u redmine -H curl --output config/puma.rb https://gist.github.com/thanhhh/5610668/raw/fdfe2a865c3a0afe912c8784c971ea7ca3e64cfd/puma.rb
Install Init Script
--------------------
Download the init script (will be /etc/init.d/redmine):
sudo curl --output /etc/init.d/redmine https://gist.github.com/thanhhh/5610675/raw/fe35c2a55f616938e2a55586da43749315b49f5b/redmine
sudo chmod +x /etc/init.d/redmine
Make Redmine start on boot:
sudo update-rc.d redmine defaults 21
Nginx - add cofig to default side
---------------------------------
sudo curl --output /etc/nginx/sites-available/redmine https://gist.github.com/thanhhh/5610742/raw/862ed543ba4a46611c72cf7f29b5671046d93857/gistfile1.txt
sudo ln -s /etc/nginx/sites-available/redmine /etc/nginx/sites-enabled/redmine
@pschichtel
Copy link

thank you for this

@dasegn
Copy link

dasegn commented Dec 8, 2015

Thanks, this is very useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment