0

Alors que j'exécute la commande suivante, après paquet Solr gemmes liéesRails - Tache solr ne part pas dans le développement

bundle exec rake sunspot:solr:start

Je suis erreur d'autorisation:

Creating directory /apps/test_app/current/solr 
rake aborted! 
Errno::EACCES: Permission denied @ dir_s_mkdir - /apps 
/home/rp/.rvm/gems/[email protected]_app/gems/sunspot_solr-2.2.6/lib/sunspot/solr/installer.rb:48:in `block in execute' 
/home/rp/.rvm/gems/[email protected]_app/gems/sunspot_solr-2.2.6/lib/sunspot/solr/installer.rb:37:in `each' 
/home/rp/.rvm/gems/[email protected]_app/gems/sunspot_solr-2.2.6/lib/sunspot/solr/installer.rb:37:in `execute' 
/home/rp/.rvm/gems/[email protected]_app/gems/sunspot_solr-2.2.6/lib/sunspot/solr/installer.rb:17:in `execute' 
/home/rp/.rvm/gems/[email protected]_app/gems/sunspot_solr-2.2.6/lib/sunspot/solr/server.rb:174:in `install_solr_home' 
/home/rp/.rvm/gems/[email protected]_app/gems/sunspot_solr-2.2.6/lib/sunspot/solr/server.rb:40:in `bootstrap' 
/home/rp/.rvm/gems/[email protected]_app/gems/sunspot_solr-2.2.6/lib/sunspot/solr/server.rb:55:in `start' 
/home/rp/.rvm/gems/[email protected]_app/gems/sunspot_solr-2.2.6/lib/sunspot/solr/tasks.rb:10:in `block (3 levels) in <top (required)>' 
/home/rp/.rvm/gems/[email protected]_app/gems/rake-11.3.0/exe/rake:27:in `<top (required)>' 
/home/rp/.rvm/gems/[email protected]_app/bin/ruby_executable_hooks:15:in `eval' 
/home/rp/.rvm/gems/[email protected]_app/bin/ruby_executable_hooks:15:in `<main>' 
Tasks: TOP => sunspot:solr:start 
(See full trace by running task with --trace) 

Ce serait une grande aide si quelqu'un eu une idée à ce sujet. Merci d'avance!

+0

Je ne sais pas, doit y avoir un problème d'autorisation! : p – fidato

+0

Veuillez vérifier l'autorisation de ce répertoire 'apps/test_app/current/solr' –

+0

Je n'ai pas de répertoire nommé' apps' dans mon répertoire personnel – fidato

Répondre

2

configuration des taches solaires devrait être cette config/sunspot.yml

development: 
    solr: 
    hostname: localhost 
    port: 8982 
    log_level: INFO 

test: 
    solr: 
    hostname: localhost 
    port: 8981 
    log_level: WARNING 

Ref: github repo