Skip to content
This repository
Browse code

Add some updates to install docs

  • Loading branch information...
commit f45d6436df1c34efab1b38fc01dd20149f6ab02f 1 parent 8b19014
Dmitriy Zaporozhets authored February 19, 2013
2  VERSION
... ...
@@ -1 +1 @@
1  
-2.0.0
  1
+2.1.0pre
25  doc/installation.md
Source Rendered
@@ -19,9 +19,8 @@ Create a user for GitLab:
19 19
 
20 20
     \curl -L https://get.rvm.io | bash -s stable --ruby
21 21
 
22  
-
23 22
     # Add next line to ~/.bashrc
24  
-    source /home/gitlab_ci/.rvm/scripts/rvm
  23
+    echo "source /home/gitlab_ci/.rvm/scripts/rvm" >> ~/.bashrc
25 24
 
26 25
 
27 26
 ## 3. Prepare MySQL
@@ -53,28 +52,36 @@ Create a user for GitLab:
53 52
 
54 53
 ## 5. Setup application
55 54
 
  55
+    # Act as gitlab_ci user
  56
+    #
  57
+    sudo su gitlab_ci
  58
+    cd ~/gitlab-ci
  59
+
56 60
     # Create a tmp directory inside application
57  
-    sudo -u gitlab_ci -H mkdir -p tmp/pids
  61
+    #
  62
+    mkdir -p tmp/pids
58 63
 
59 64
     # Install dependencies
60 65
     #
61  
-    sudo -u gitlab_ci -H gem install bundler
62  
-
63  
-    sudo -u gitlab_ci -H bundle --without development test
  66
+    gem install bundler
  67
+    bundle --without development test
64 68
 
65 69
     # Copy mysql db config
66 70
     #
67 71
     # make sure to update username/password in config/database.yml
68 72
     #
69  
-    sudo -u gitlab_ci -H cp config/database.yml.mysql config/database.yml
  73
+    cp config/database.yml.mysql config/database.yml
70 74
 
71 75
     # Setup DB
72 76
     #
73  
-    sudo -u gitlab_ci -H bundle exec rake db:setup RAILS_ENV=production
  77
+    bundle exec rake db:setup RAILS_ENV=production
74 78
 
75 79
     # Setup scedules 
76 80
     #
77  
-    sudo -u gitlab_ci -H bundle exec whenever -w RAILS_ENV=production
  81
+    bundle exec whenever -w RAILS_ENV=production
  82
+   
  83
+    # Now exit from gitlab_ci user
  84
+    exit
78 85
 
79 86
 
80 87
 ## 6. Install Init Script

0 notes on commit f45d643

Please sign in to comment.
Something went wrong with that request. Please try again.