Merge branch 'master' of github.com:diaspora/diaspora

Conflicts:
	app/models/user.rb
This commit is contained in:
maxwell 2010-09-15 15:46:15 -07:00
commit 6e29a66e09
2 changed files with 8 additions and 4 deletions

View file

@ -116,14 +116,12 @@ If you have never used github before, their [help desk](http://help.github.com/)
## Running Diaspora
### Install required gems
To start the app server for the **first time**, Bundler needs to grab Diaspora's gem depencencies. To allow this, run `bundle install` from Diaspora's root directory.
It is important to run a bundle install every so often, in the event of a new gem dependency. We will make sure to make an announcement in the event of a gem change.
To start the app server for the first time, you need to use Bundler to install Diaspora's gem depencencies. Run `bundle install` from Diaspora's root directory. Bundler will also warn you if there is a new dependency and you need to bundle install again.
### Start Mongo
After installing the above, run `sudo mongod` from where mongo is installed to start mongo.
Diaspora will **not run** unless mongo is running. Mongo will not run by default, and will need to be started every time you wish to use or run the test suite for Diaspora.
Diaspora will not run unless mongo is running. Mongo will not run by default, and will need to be started every time you wish to use or run the test suite for Diaspora.
### Run the app server
Once mongo is running and bundler has finished, run `bundle exec thin start` from the root Diaspora directory. This will start the app server in development mode[.](http://bit.ly/9mwtUw)

View file

@ -37,6 +37,7 @@ class User
before_create :setup_person
after_create :set_diaspora_handle
after_create :seed_aspects
before_validation :do_bad_things
before_save :downcase_username
@ -293,6 +294,11 @@ class User
opts[:person][:serialized_key] = generate_key
User.create!(opts)
end
def seed_aspects
aspect(:name => "Family")
aspect(:name => "Work")
end
def self.create(opts ={})
puts opts.inspect