diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-07-16 17:34:47 +0200 |
---|---|---|
committer | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-07-21 20:49:51 +0200 |
commit | 55acc3094b9c7b56a4154b67c24c90b14341460d (patch) | |
tree | fc1f15b270f32ce0ae7417e9b78e464891c6489a /README | |
parent | Don't show questions with no content (diff) | |
download | recruiting-webapp-55acc3094b9c7b56a4154b67c24c90b14341460d.tar.gz recruiting-webapp-55acc3094b9c7b56a4154b67c24c90b14341460d.tar.bz2 recruiting-webapp-55acc3094b9c7b56a4154b67c24c90b14341460d.zip |
New rake tasks to prepare app to work
Diffstat (limited to 'README')
-rw-r--r-- | README | 57 |
1 files changed, 13 insertions, 44 deletions
@@ -2,23 +2,8 @@ This will be web based application for Gentoo Recruiters team. To start testing application you should: -1.Install gems. If you want only to run it install hobo gem. If you want to run - tests you will need also shoulda and rspec. Install them how you would any - other gem. You can have rake install it for you: - - rake gems:install - - or install them manually: - - gem install hobo rspec shoulda - - For detailed instructions see: - - http://docs.rubygems.org/read/chapter/10#page33 - - -2.Install git. -3.Get sources +1.Install git. +2.Get sources git clone git://git.overlays.gentoo.org/proj/recruiting-webapp.git @@ -27,42 +12,26 @@ To start testing application you should: git clone git://github.com/ahenobarbi/Gentoo-Recruiters-App.git -4. Create config/database.yml file. The default, using SQLite v3: +3.Install gems. The best way to do it is to have rake install it for you: - development: - adapter: sqlite3 - database: db/development.sqlite3 - pool: 5 - timeout: 5000 - test: - adapter: sqlite3 - database: db/test.sqlite3 - pool: 5 - timeout: 5000 - production: - adapter: sqlite3 - database: db/production.sqlite3 - pool: 5 - timeout: 5000 + rake gems:install -5. Initialize databases. Run +or if you want to run tests - rake db:create - rake db:schema:load + RAILS_ENV=test rake gems:install - in directory with sources +4.Prepare configuration and databases. -6. (Optional) If you want some example data in you database before you start - testing run + rake prepare - rake db:seed + You can pass db=sqlite3 or db=postgres if you want rake to prepare database configuration for you. + You can pass seed= if you want rake to seed you database with example data. - and answer y to the question (remember, this removes all data from database). +5. (Optional) You can run test I prepared by simply issuing -7. (Optional) You can run some test I prepared + rake - rake spec -8. Start server +6. Start server ruby script/server |