![]() ![]() |
Nov 2 2006, 08:16 PM
Post
#1
|
|
|
Group: Members Posts: 88 Joined: 20-February 06 From: Sydney Member No.: 9,186 |
really good to see that Ruby on Rails can be done under pdaXrom env't...
the topic was initiated by another zaurus user, and he is succeeded in doing so... then he told me how to apply this technique and so i deliver the screen captures in my machine..... The solver is called 'boris' (he should be a member here... well, i don't know his id here... ) original thread outside oesf (but in total chinese... ) little excerpts from there... QUOTE Boris writes: - download ruby 's ipk: - http://www.oesf.org/forums/index.php?showtopic=19009 download RubyGems and expands so in zaurus: - http://rubyforge.org/frs/?group_id=126 ruby setup.rb after installing Gem, install Rails: gem install rails install Mongrel: Mongrel is a web application server written by ruby ipkg install make gcc gcc-headers gem install mongrel finally MySQL feed: http://www.pdaxrom.org/contrib/desertrat/ ipkg update ipkg install mysql-server ipkg install mysql-client mysql-tools (depends on your interest) default install location :/usr/local/mysql first time run of mysql, run that first: mysql_install_db QUOTE dinorex writes: - if you want to use 'mysql' account instead of root to run mysql, refer http://www.linuxquestions.org/questions/sh...ad.php?t=441366 user ID = mysql in both /etc/passwd and /etc/group then reset the /usr/local/var permission & ownership as mysql .... after that, the /etc/rc.d/init.d/apachectl start then can runs..... @@ for testing the sample database in console prompt: CODE rails sample under sample directory (in this case: /usr/local/sample) mongrel_rails start -p 3006 -d screen captures: - in IE7 browsers: - ![]() pdaxrom side: - ![]() localhost query application's environment results: - ![]() since the processing speed in this env't is quite slow... Boris (the originator) wants to try the lighttpd (which is a lightweight server to apache), and sqlite but not yet started... interested members please investigate the feasibilities on making this env't to be less resources demanding to make it run faster..... AGAIN, let's honour this topic to the boris and moming: to kick off and deploy the rail sample env't inside the server.... |
|
|
|
Nov 30 2006, 09:35 AM
Post
#2
|
|
|
Group: Members Posts: 88 Joined: 20-February 06 From: Sydney Member No.: 9,186 |
The following is the output sample written from a friend writing via Ruby on Rails : -
(screen captured under motif env't [mwm] in pdaxrom beta 4)
|
|
|
|
Nov 30 2006, 02:58 PM
Post
#3
|
|
![]() Group: Members Posts: 2,808 Joined: 21-March 05 From: Sydney, Australia Member No.: 6,686 |
great!!! i want to get it running on my C3000 once I get pdaX fully setup there...
|
|
|
|
May 21 2007, 02:24 PM
Post
#4
|
|
|
Group: Members Posts: 81 Joined: 15-March 05 Member No.: 6,635 |
The bulk update problem mentioned here (and caused by memory issues):
http://www.oesf.org/forums/index.php?showtopic=21376 has been resolved by this nice guy: http://rubyforge.org/tracker/index.php?fun...id=126&atid=575 Following his instructions I was able to install rails using Meanie's ruby package 1.8.5 from the beta3 custom feed at the Tyrannozaurus site CODE root-:) gem list -r *** REMOTE GEMS *** GOT HERE! Bulk updating Gem source index for: http://gems.rubyforge.org 6% ... 100% ... root-:) gem install rails --include-dependencies --version '= 1.1.6' --no-rdoc Successfully installed rails-1.1.6 Successfully installed rake-0.7.3 Successfully installed activesupport-1.3.1 Successfully installed activerecord-1.14.4 Successfully installed actionpack-1.12.5 Successfully installed actionmailer-1.2.5 Successfully installed actionwebservice-1.1.6 root-:) mkdir ruby-demo root-:) cd ruby-demo root-:) rails demo create create app/controllers ... root-:) cd demo root-:) ./script/server ./script/../config/boot.rb:28:Warning: require_gem is obsolete. Use gem instead. => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2007-05-21 14:56:20] INFO WEBrick 1.3.1 [2007-05-21 14:56:20] INFO ruby 1.8.5 (2006-08-25) [armv5tel-linux] [2007-05-21 14:56:20] INFO WEBrick::HTTPServer#start: pid=1448 port=3000 The installation of the framework itself was rather quick, but an attempt to install the documentation went for >3hrs (with no X): CODE root-:) top so eventually I stopped it.Mem: 61256K used, 1036K free, 0K shrd, 148K buff, 50632K cached Load average: 3.32, 2.84, 2.45 (State: S=sleeping R=running, W=waiting) PID USER STATUS RSS PPID %CPU %MEM COMMAND 1404 root R 45M 1360 78.9 74.4 gem ... root-:) free total used free shared buffers Mem: 62292 60908 1384 0 216 Swap: 269128 58236 210892 This shows memory demand of ruby/rails will be high, so a look into the BleakHouse profiler and other memory usage notes might be worth it. The impact of using locally MySQL would be interesting to see. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 12:38 AM |