Updating README_DEVEL and fixing environment.rb so foodsoft runs on a clean system.
Signed-off-by: bennibu <benni@dresdener27.de>
This commit is contained in:
parent
fc45345e0d
commit
80287aeea4
2 changed files with 40 additions and 23 deletions
61
README_DEVEL
61
README_DEVEL
|
@ -1,50 +1,67 @@
|
||||||
README for DEVELopment Project Setup
|
README for DEVELopment Project Setup
|
||||||
====================================
|
====================================
|
||||||
|
|
||||||
Gratulations, you have successfully checked out the foodsoft project
|
Gratulations, you have successfully cloned the foodsoft project
|
||||||
form the subversion repository. Now you are only a few steps away from
|
from the git repository. Now you are only a few steps away from
|
||||||
trying it out and then jumping into development.
|
trying it out and then jumping into development. (This manual presumes
|
||||||
|
you have ruby and rails setup.)
|
||||||
|
|
||||||
|
(1) Configure datebase
|
||||||
|
----------------------
|
||||||
|
Create the database configuration from the default:
|
||||||
|
|
||||||
Configure datebase
|
cp config/database.yml.SAMPLE config/database.yml
|
||||||
------------------
|
|
||||||
If you are fine with sqlite you can skip this point. Otherwise ..
|
|
||||||
|
|
||||||
cp config/database.yml.SAMPLE config/database.yml
|
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.
|
||||||
Edit database.yml to specify connection parameters.
|
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).
|
||||||
|
|
||||||
|
|
||||||
Configure Development Environment
|
(2) Configure development environment
|
||||||
---------------------------------
|
-------------------------------------
|
||||||
You need to create your own copy of the development environment configuration:
|
Again, you need to create your own copy of the default configuration:
|
||||||
|
|
||||||
cp config/environments/development.rb.SAMPLE config/environments/development.rb
|
cp config/environments/development.rb.SAMPLE config/environments/development.rb
|
||||||
|
|
||||||
Edit development.rb to specify your settings (e.g. ActionMailer SMTP settings).
|
Edit development.rb to specify your settings (at least the ActionMailer SMTP settings).
|
||||||
|
If you just leave the file as is, emails will not work but everything else should be okay.
|
||||||
|
|
||||||
|
|
||||||
Configure Foodsoft
|
(3) Foodsoft settings
|
||||||
------------------
|
---------------------
|
||||||
You need to create your own copy of the foodsoft configuration settings:
|
You need to create your own copy of the foodsoft configuration settings:
|
||||||
|
|
||||||
cp config/app_config.yml.SAMPLE config/app_config.yml
|
cp config/app_config.yml.SAMPLE config/app_config.yml
|
||||||
|
|
||||||
Edit app_config.yml to suit your needs.
|
Edit app_config.yml to suit your needs or just keep the defaults for now.
|
||||||
|
|
||||||
|
|
||||||
Create database schema
|
(4) Required gems
|
||||||
----------------------
|
-------------------
|
||||||
|
In addition to the standard Ruby on Rails gems you will need to install
|
||||||
|
the additional gems required by running:
|
||||||
|
|
||||||
|
sudo gem sources -a http://gems.github.com
|
||||||
|
sudo gem install haml fastercsv prawn rubyist-aasm
|
||||||
|
|
||||||
|
|
||||||
|
(5) Create database schema
|
||||||
|
--------------------------
|
||||||
rake db:schema:load
|
rake db:schema:load
|
||||||
|
|
||||||
|
|
||||||
Create user admin with password secret
|
(6) Create user "admin" with password "secret"
|
||||||
--------------------------------------
|
----------------------------------------------
|
||||||
rake foodsoft:create_admin
|
rake foodsoft:create_admin
|
||||||
|
|
||||||
|
|
||||||
Try it out
|
(7) Try it out!
|
||||||
----------
|
---------------
|
||||||
Start the WEBrick server to try it out:
|
Start the WEBrick server to try it out:
|
||||||
|
|
||||||
script/server
|
script/server
|
|
@ -67,7 +67,7 @@ Rails::Initializer.run do |config|
|
||||||
# library for parsing/writing files from/to csv-file
|
# library for parsing/writing files from/to csv-file
|
||||||
config.gem "fastercsv"
|
config.gem "fastercsv"
|
||||||
config.gem "prawn"
|
config.gem "prawn"
|
||||||
config.gem "rubyist-aasm", :version => '2.0.5', :source => "http://gems.github.com" # acts_as_statemachine
|
config.gem "rubyist-aasm", :lib => 'aasm', :version => '2.0.5', :source => "http://gems.github.com" # acts_as_statemachine
|
||||||
|
|
||||||
# The internationalization framework can be changed to have another default locale (standard is :en) or more load paths.
|
# The internationalization framework can be changed to have another default locale (standard is :en) or more load paths.
|
||||||
# All files from config/locales/*.rb,yml are added automatically.
|
# All files from config/locales/*.rb,yml are added automatically.
|
||||||
|
|
Loading…
Reference in a new issue