Skip to content

Commit

Permalink
Updated README_DEVEL.
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibu committed May 6, 2011
1 parent 04293c8 commit face58e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Have a look on README_DEVEL.
== License

FoodSoft - a webbased foodcoop management software
Copyright (C) 2009 Benni and Lasse
Copyright (C) 2011 Benni and Lasse

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
29 changes: 12 additions & 17 deletions README_DEVEL
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ Create the database configuration from the default:

If you are fine with using a file-based sqlite database you are all set.
The sqlite files (development/test/production) will reside in the "db" directory.
You might still need to install sqlite and the respective gem, i.e. on Ubuntu do:

sudo aptitude install sqlite3 libsqlite3-dev
sudo gem install sqlite3-ruby

Otherwise you would want to edit database.yml to suit your needs (MySQL whatever).


Expand All @@ -41,26 +36,26 @@ You need to create your own copy of the foodsoft configuration settings:
Edit app_config.yml to suit your needs or just keep the defaults for now.


(4) Required gems
(4) Required ruby and gems
-------------------
In addition to the standard Ruby on Rails gems you will need to install
the additional gems required by running:
We reccomend the using of rvm (https://rvm.beginrescueend.com/). Install rvm and get the lates ruby (1.8.7).
If installed you only need to install the gem bundler:

gem install bundler

sudo gem sources -a http://gems.github.com
sudo gem install haml fastercsv prawn rubyist-aasm
After that you get the other gems easily with (from project root):

bundle install

(5) Create database schema

(5) Create database (schema) and load defaults
--------------------------
rake db:schema:load
rake db:create

With this, you also get a ready to go user with username 'admin' and password 'secret'.

(6) Create user "admin" with password "secret"
----------------------------------------------
rake foodsoft:create_admin


(7) Try it out!
(6) Try it out!
---------------
Start the WEBrick server to try it out:

Expand Down
11 changes: 10 additions & 1 deletion config/database.yml.SAMPLE
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000

# Mysql config instead
# database: foodsoft_development
# username: root
# password:
# host: localhost
# encoding: utf8
# Define a socket, if youre not using standard linux socket, like lampp..
# socket: /opt/lampp/var/mysql/mysql.sock


# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
Expand Down

0 comments on commit face58e

Please sign in to comment.