Difference between revisions of "Development on MacOSX"

From Amahi Wiki
Jump to: navigation, search
(New page: == 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 we...)
 
 
Line 13: Line 13:
 
     rake db:migrate
 
     rake db:migrate
 
* migrations went fine
 
* migrations went fine
* then some settings need to be initialized
+
* 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

Latest revision as of 06:48, 14 July 2009

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