Permalink
Browse files

Note on seeding a dev server with commit data.

  • Loading branch information...
1 parent 64aceb5 commit 831c1d06bffac42758eab66565c9f4f45f83f336 @pwnall committed Sep 26, 2012
Showing with 20 additions and 10 deletions.
  1. +20 −10 README.md
View
@@ -1,4 +1,4 @@
-# Gitty Overview
+# Gitty Overview
Gitty is an open-source reduced-functionality Github clone.
@@ -18,13 +18,13 @@ sudo yum install -y git openssh-server mysql-devel mysql-server
sudo systemctl enable mysqld.service sshd.service
sudo systemctl start mysqld.service sshd.service
```
-
+
On Ubuntu:
```bash
sudo apt-get install -y git libmysqlclient-dev libssl-dev mysql-client mysql-server openssh-server
```
-
+
On OSX, go to System Preferences > Sharing, check the Remote Login option.
Gitty uses [markdpwn](https://github.com/pwnall/markdpwn) for source code
@@ -44,7 +44,7 @@ bundle exec rake db:create db:migrate db:seed
Gitty needs a dedicated user for git+ssh. To create the user, run the following
command, replacing web_user with the name of the user that the Rails server runs
-under.
+under.
```bash
script/git_user/setup git web_user
@@ -55,14 +55,14 @@ replacing the first argument in the command above, then changing the
configuration variable git_user by going to
```bash
-http://gitty_server/_/config_vars
+http://localhost:3000/_/config_vars
```
-The admin username and password are config and vars, respectively. You should
+The admin username and password are config and vars, respectively. You should
probably visit the configuration variables page anyway, to change the admin
login and the address used to send e-mails.
```bash
-http://gitty_server/_/config_vars
+http://localhost:3000/_/config_vars
```
@@ -75,12 +75,22 @@ code.
bundle exec rake diagram:all
```
-The documentation for the ActiveRecord models assumes knowledge of the
-[git object model](http://book.git-scm.com/1_the_git_object_model.html).
+The documentation for the ActiveRecord models assumes knowledge of the
+[git object model](http://git-scm.com/book/en/Git-Internals-Git-Objects)
+
+An easy way to seed your development server with git data is to push the gitty
+repository into it. Create a user, upload your public SSH key, then create a
+`gitty` repository. Run the following commands in the gitty source tree to set
+up a `dev` remote pointing to your local server, and push the repo to it.
+
+```bash
+git remote add dev git@localhost:your_user_name/gitty.git
+git push dev master
+```
## Note on Patches/Pull Requests
-
+
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a future version

0 comments on commit 831c1d0

Please sign in to comment.