| ... | @@ -34,18 +34,19 @@ sqlite as default db |
... | @@ -34,18 +34,19 @@ sqlite as default db |
|
|
sudo easy_install pygments
|
|
sudo easy_install pygments
|
|
|
|
|
|
|
|
sudo gem install bundler
|
|
sudo gem install bundler
|
|
|
|
|
|
|
bundle
|
|
bundle
|
|
|
|
|
|
|
|
RAILS_ENV=production rake db:setup
|
|
bundle exec rake db:setup RAILS_ENV=production
|
|
|
|
|
|
|
|
# create admin user
|
|
# create admin user
|
|
|
# login....admin@local.host
|
|
# login....admin@local.host
|
|
|
# pass.....5iveL!fe
|
|
# pass.....5iveL!fe
|
|
|
RAILS_ENV=production rake db:seed_fu
|
|
bundle exec rake db:seed_fu RAILS_ENV=production
|
|
|
|
|
|
|
|
Install gitosis, edit conf/gitosis.yml & start server
|
|
Install gitosis, edit conf/gitosis.yml & start server
|
|
|
|
|
|
|
|
rails s
|
|
rails s -e production
|
|
|
|
|
|
|
|
== Install Gitosis
|
|
== Install Gitosis
|
|
|
sudo aptitude install gitosis
|
|
sudo aptitude install gitosis
|
| ... | @@ -63,6 +64,7 @@ Install gitosis, edit conf/gitosis.yml & start server |
... | @@ -63,6 +64,7 @@ Install gitosis, edit conf/gitosis.yml & start server |
|
|
ssh-keygen -t rsa
|
|
ssh-keygen -t rsa
|
|
|
|
|
|
|
|
sudo -H -u git gitosis-init < ~/.ssh/id_rsa.pub
|
|
sudo -H -u git gitosis-init < ~/.ssh/id_rsa.pub
|
|
|
|
|
|
|
sudo chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update
|
|
sudo chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update
|
|
|
|
|
|
|
|
|
|
|
| ... | |
... | |
| ... | | ... | |