1. Setup OpenShift environment.
$ rhc setup
2. Create application "redmine" with "ruby-1.9" and "mysql-5.5"
$ rhc app create redmine ruby-1.9 mysql-5.5
3. Merge "https://github.com/ikedam/openshift-redmine.git" for any version Redmine
$ cd redmine
$ git remote add upstream -m master https://github.com/ikedam/openshift-redmine.git
$ git pull -s recursive -X theirs upstream master
4. Download "redmine-x.y.z.tar.gz" from "http://www.redmine.org"
5. Decompress "redmine-x.y.z.tar.gz" to "redmine-x.y.z" directory.
$ tar zxvf redmine-x.y.z.tar.gz
6. Copy all files from "redmine-x.y.z" directory to "redmine" directory
$ cp -R redmine-x.y.z/ redmine/
7. Add 3 lines into .gitignore:
/files/*
/log/*
/public/plugin_assets/*
8. Use "git" to add all files into local repo.
9. Push local repo. to remote repo.
$ git push -u origin master
10. Goto Web Page.
沒有留言:
張貼留言