Updated README_DEVEL.
This commit is contained in:
parent
04293c8dcf
commit
face58ebef
3 changed files with 24 additions and 20 deletions
2
README
2
README
|
@ -9,7 +9,7 @@ Have a look on README_DEVEL.
|
||||||
== License
|
== License
|
||||||
|
|
||||||
FoodSoft - a webbased foodcoop management software
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|
31
README_DEVEL
31
README_DEVEL
|
@ -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.
|
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.
|
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).
|
Otherwise you would want to edit database.yml to suit your needs (MySQL whatever).
|
||||||
|
|
||||||
|
|
||||||
|
@ -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.
|
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
|
We reccomend the using of rvm (https://rvm.beginrescueend.com/). Install rvm and get the lates ruby (1.8.7).
|
||||||
the additional gems required by running:
|
If installed you only need to install the gem bundler:
|
||||||
|
|
||||||
sudo gem sources -a http://gems.github.com
|
gem install bundler
|
||||||
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"
|
(6) Try it out!
|
||||||
----------------------------------------------
|
|
||||||
rake foodsoft:create_admin
|
|
||||||
|
|
||||||
|
|
||||||
(7) Try it out!
|
|
||||||
---------------
|
---------------
|
||||||
Start the WEBrick server to try it out:
|
Start the WEBrick server to try it out:
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,20 @@
|
||||||
# SQLite version 3.x
|
# SQLite version 3.x
|
||||||
# gem install sqlite3-ruby (not necessary on OS X Leopard)
|
|
||||||
development:
|
development:
|
||||||
adapter: sqlite3
|
adapter: sqlite3
|
||||||
database: db/development.sqlite3
|
database: db/development.sqlite3
|
||||||
pool: 5
|
pool: 5
|
||||||
timeout: 5000
|
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
|
# Warning: The database defined as "test" will be erased and
|
||||||
# re-generated from your development database when you run "rake".
|
# re-generated from your development database when you run "rake".
|
||||||
# Do not set this db to the same as development or production.
|
# Do not set this db to the same as development or production.
|
||||||
|
|
Loading…
Reference in a new issue