Development on MacOSX

From Amahi Wiki
Revision as of 06:48, 14 July 2009 by Cpg (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Steps to development the amahi platform on Mac

  • install RoR - default ruby is fine - need specific gem
    sudo gem install -v=2.1.1 rails
  • installed mysql - default installer went ok
    issue: the amahi platform assumes root password is hda
    had to change it with mysqladmin
  • get the code:
    git clone git://git.amahi.org/amahi.git
    cd amahi/platform/platform/html
  • create the db (wuth root password being hda, it worked):
    rake db:create
    rake db:migrate
  • migrations went fine
  • then some settings need to be initialized (cpg knows)
  • cd platform/platform/html
  • comment out require 'ldap' from
    app/controllers/user_controller.rb
    app/controllers/setup_controller.rb
  • make execute return immediately in lib/command.rb
  • sudo gem install --no-ri --no-rdoc pluginfactory
  • ./script server