Commit 25c9cbff89878482b1b9a8fa853fc2c426751178
1 parent
ea4ded6e
Exists in
master
and in
4 other branches
readme updated
Showing
1 changed file
with
73 additions
and
9 deletions
Show diff stats
README.rdoc
| ... | ... | @@ -8,14 +8,78 @@ rails 3.1 |
| 8 | 8 | works only with gitosis |
| 9 | 9 | sqlite as default db |
| 10 | 10 | |
| 11 | -== Getting Started | |
| 12 | 11 | |
| 13 | -1. At the command prompt, clone application: | |
| 14 | -2. Setup and configure gitosis https://help.ubuntu.com/community/Git but use "git" as gitosis user name | |
| 15 | -3. Change directory to <tt>app</tt> and run next commands: | |
| 16 | - ruby configure.rb # OR ruby configure.rb production | test | development | |
| 17 | -4. Check config/gitosis.yml file | |
| 18 | -5. Start rails application: | |
| 19 | - rails s | |
| 12 | +== Requirements | |
| 20 | 13 | |
| 21 | -6. Go to http://localhost:3000/ and you'll see project managment page | |
| 14 | +* ruby 1.9.2 | |
| 15 | + | |
| 16 | +* sqlite | |
| 17 | + | |
| 18 | +* git | |
| 19 | + | |
| 20 | +* gitosis | |
| 21 | + | |
| 22 | +* ubuntu/debian | |
| 23 | + | |
| 24 | +* pygments lib - sudo easy_install pygments | |
| 25 | + | |
| 26 | + | |
| 27 | +== Install Project | |
| 28 | + | |
| 29 | + | |
| 30 | + git clone git://github.com/gitlabhq/gitlabhq.git | |
| 31 | + cd gitlabhq/ | |
| 32 | + | |
| 33 | + # install this library first | |
| 34 | + sudo easy_install pygments | |
| 35 | + | |
| 36 | + sudo gem install bundler | |
| 37 | + bundle | |
| 38 | + | |
| 39 | + RAILS_ENV=production rake db:setup | |
| 40 | + | |
| 41 | + # create admin user | |
| 42 | + # login....admin@local.host | |
| 43 | + # pass.....5iveL!fe | |
| 44 | + RAILS_ENV=production rake db:seed_fu | |
| 45 | + | |
| 46 | +Install gitosis, edit conf/gitosis.yml & start server | |
| 47 | + | |
| 48 | + rails s | |
| 49 | + | |
| 50 | +== Install Gitosis | |
| 51 | + sudo aptitude install gitosis | |
| 52 | + | |
| 53 | + sudo adduser \ | |
| 54 | + --system \ | |
| 55 | + --shell /bin/sh \ | |
| 56 | + --gecos 'git version control' \ | |
| 57 | + --group \ | |
| 58 | + --disabled-password \ | |
| 59 | + --home /home/git \ | |
| 60 | + git | |
| 61 | + | |
| 62 | + | |
| 63 | + ssh-keygen -t rsa | |
| 64 | + | |
| 65 | + sudo -H -u git gitosis-init < ~/.ssh/id_rsa.pub | |
| 66 | + sudo chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update | |
| 67 | + | |
| 68 | + | |
| 69 | +== Install ruby 1.9.2 | |
| 70 | + | |
| 71 | + sudo aptitude install git-core curl gcc checkinstall libxml2-dev libxslt-dev sqlite3 libsqlite3-dev libcurl4-openssl-dev libreadline5-dev libc6-dev libssl-dev libmysql++-dev make build-essential zlib1g-dev | |
| 72 | + | |
| 73 | + wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz | |
| 74 | + | |
| 75 | + tar xfvz ruby-1.9.2-p290.tar.gz | |
| 76 | + | |
| 77 | + cd ruby-1.9.2-p290 | |
| 78 | + ./configure | |
| 79 | + make | |
| 80 | + sudo checkinstall -D | |
| 81 | + | |
| 82 | + sudo gem update --system | |
| 83 | + | |
| 84 | + | |
| 85 | + echo "gem: --no-rdoc --no-ri" > ~/.gemrc | ... | ... |