Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: hypersonic on October 12, 2011, 12:36:29 PM

Title: Ruby on Rails Persistence
Post by: hypersonic 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).
Title: Re: Ruby on Rails Persistence
Post by: gerald_clark on October 12, 2011, 12:48:22 PM
Store your ruby on the drive and create a symlink in bootlocal.sh.
Title: Re: Ruby on Rails Persistence
Post by: hypersonic 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.
Title: Re: Ruby on Rails Persistence
Post by: hypersonic 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 (http://wiki.tinycorelinux.net/wiki:extension_for_settings)
Title: Re: Ruby on Rails Persistence
Post by: hypersonic 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).