WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Ruby on Rails Persistence  (Read 2232 times)

hypersonic

  • Guest
Ruby on Rails Persistence
« on: October 12, 2011, 12:36:29 PM »
With bootcodes I can make home, tce and opt persistents. Can I make /usr/local/lib/ruby persistence, without use .filetool.lst? (My backup is a little slow).
« Last Edit: October 12, 2011, 12:39:13 PM by hypersonic »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Ruby on Rails Persistence
« Reply #1 on: October 12, 2011, 12:48:22 PM »
Store your ruby on the drive and create a symlink in bootlocal.sh.

hypersonic

  • Guest
Re: Ruby on Rails Persistence
« Reply #2 on: October 12, 2011, 04:01:17 PM »
Don't work. Command 'rails -v' returns 'missing rubygems'. I think paths reference of ruby / rails don't change with symlink.

hypersonic

  • Guest
Re: Ruby on Rails Persistence
« Reply #3 on: October 19, 2011, 06:49:32 PM »
if the solution can interest someone:

In /home/tc directory:

$ mkdir -p rails/ext/usr/local/lib
$ sudo su
# cp -R /usr/local/lib/ruby /home/tc/rails/ext/usr/local/lib/
# cd /home/tc/rails
# mksquashfs ext/ rails.tcz

Then load rails.tcz OnBoot using AppsAudit.
Remove backup file of .filetool.lst ... (not filetool.sh, okay?)
Reboot

That's it. Oh... I forget wiki source: http://wiki.tinycorelinux.net/wiki:extension_for_settings
« Last Edit: October 19, 2011, 06:51:22 PM by hypersonic »

hypersonic

  • Guest
Re: Ruby on Rails Persistence
« Reply #4 on: October 19, 2011, 06:53:56 PM »
Remembering its only works when you do not change the ruby folder (for example when you install a plugin).