Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Redmine is a flexible project management web application written using Ruby on Rails framework. http://github.com/edavis10/redmine is the official git mirror of the svn repository
Ruby JavaScript CSS Other

This branch is 9 commits ahead, 1563 commits behind edavis10:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db/migrate
doc
extra
files
lib
log
plugins
public
script
test
tmp
vendor
.gitignore
.gitmodules
.hgignore
CONTRIBUTING.md
Capfile
Gemfile
README.md
Rakefile
config.ru

README.md

= Redmine - Optimor Flow

For testing:

thomasn@zappi:/var/www/rails/redmine$ RAILS_ENV=development /opt/ruby-enterprise-1.8.7-2011.03/bin/ruby script/server

For deployment:

  • ssh key in ~vagrant/.ssh gives access to zappi.billmonitor.com check with manual 'ssh zappi.billmonitor.com'
  • cd ~vagrant/dev/redmine Â# invokes rvm via .rvmrc
  • cap staging deploy
  • TEST...
  • cap production deploy
  • Pro£it...

PostgreSQL setup

root@lucid32:~# su - postgres postgres@lucid32:~$ psql postgres psql (8.4.10) Type "help" for help.

postgres=# \password postgres Enter new password: Enter it again: postgres=# create user redmine with createdb password 'spaceman'; CREATE ROLE postgres=# \q postgres@lucid32:~$ psql -h localhost -U redmine template1 Password for user redmine: psql (8.4.10) SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256) Type "help" for help.

template1=> CREATE DATABASE redmine WITH ENCODING = 'UTF-8' LC_CTYPE = 'en_US.utf8' LC_COLLATE = 'en_US.utf8' TEMPLATE template0; CREATE DATABASE

ALTER DATABASE "redmine" SET datestyle="ISO,MDY";

(Notes) Fix Vagrant dev env

gem uninstall rack gem i --version '= 1.1.3' rack gem uninstall rake gem i --version '=0.8.7' rake gem i -v '=1.6.2' rubygems-update ruby gem env gemdir/gems/rubygems-update-1.6.2/setup.rb sudo apt-get install libpq-dev gem i pg

Configure Redmine

rake generate_secret_token rake db:migrate rake redmine:load_default_data

Configure target server (specify in deploy.rb)

Install system rvm. Then:

thomasn@elk ~ $ sudo useradd -m -s /bin/bash -g apache bmvagrant thomasn@elk ~ $ sudo password bmvagrant

thomasn@tapir ~/dev/optimor/redmine $ ssh bmvagrant@elk.nexus10.com Password: bmvagrant@elk ~ $ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/bmvagrant/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/bmvagrant/.ssh/id_rsa. Your public key has been saved in /home/bmvagrant/.ssh/id_rsa.pub. The key fingerprint is: 2d:6c:32:81:59:db:1b:7c:3f:cf:9d:a7:6b:db:3f:0a bmvagrant@elk The key's randomart image is: ...

thomasn@tapir ~/dev/optimor/redmine $ ssh-copy-id bmvagrant@elk.nexus10.com Password: ...

thomasn@tapir ~/dev/optimor/redmine $ ssh bmvagrant@elk.nexus10.com bmvagrant@elk ~ $ exit thomasn@tapir ~/dev/optimor/redmine $ ssh thomasn@elk.nexus10.com
thomasn@elk ~ $ sudo mkdir -p /var/www/rails/redmine Password: thomasn@elk ~ $ sudo chown bmvagrant:apache /var/www/rails/redmine

As root on target box:

elk ~ # rvm install ruby-1.8.7-p374 elk ~ # gem i --no-ri --no-rdoc bundler

On launch box:

thomasn@tapir ~/dev/optimor/redmine $ cap production deploy:setup

bmvagrant@elk ~ $ cat .ssh/id_rsa.pub ... add this key to Deploy Keys for 'optimor/redmine' on GitHub ...

thomasn@tapir ~/dev/optimor/redmine $ cap production deploy:cold

bmvagrant@elk ~ $ git ls-remote git@github.com:optimor/redmine.git HEAD ... add to known_hosts ...

elk ~ # cd /var/www/rails/redmine/shared/cached-copy/ elk cached-copy # bundle install elk cached-copy # export rvmsudo_secure_path=0 elk cached-copy # rvmsudo bundle install elk cached-copy # rvm all do bundle install

Something went wrong with that request. Please try again.