Skip to content
atOm aNt edited this page Feb 7, 2014 · 26 revisions

Using 4-store as Database, and, after an import, my database is not showing any results: when manually try to run a query (from console), I get:

  $ 4s-query kosa  
  4s-client.c:306 kb=kosa waiting for lock on segment 0 on 2a01:4f8:151:33c5::2 port 6734  
  4s-client.c:306 kb=kosa waiting for lock on segment 0 on 2a01:4f8:151:33c5::2 port 6734  
  4s-client.c:306 kb=kosa waiting for lock on segment 0 on 2a01:4f8:151:33c5::2 port 6734  

Try:

  • Ensure, before import, you turn off the 4s-backend daemon
  • Edit file /etc/avahi/avahi-daemon.conf, and sett "use-ipv6=no"
  • After that, start 4s-backend, and 4s-httpd
  • Also you can try, alternativally to drop your database, and re-import data:
  ( drop it)
  $ sudo 4s-backend-destroy kosa
  ( create new database )
  $ sudo 4s-backend-setup kosa

When I run bundle command on the Production server I get error

  ... (at master) is not checked out. Please run `bundle install` (Bundler::GitError) 

You may be ussing Passenger as Application Server, use:

  bundle install --deployment
  or
  rvm all do bundle install --deploymet

to create bundle

¿Where can I get more documentation on how the frontend has been built?

You can find it here

I am trying to debug the ruby-sinatra part of the app. Ho do I do this?

On the debugging environment the 'pry' Gem is available in your bundle; try installing the 'racksh' Gem, and running it from console.

  $ racksh
  >> $rack.get '/'
  ...
  -- press 's, c or f' key --

You can get more info here

I am experienciencing heavy caching on my asset files while debugging the app. How can I clean it?

Kosa uses Rack-cacke gem on Middleware. to clean it, type

cd _kosa_dir_
rake cache:clear
service nginx restart

To un-cache the Browser side cache, open the file _kosa_dir_/public.devel/app/assets/index.html, search for the word '?uncache' and change it for '?whatever_you_like'. Then run _kosa_dir_/public.devel/deploy.sh, and thats it!

Clone this wiki locally