Top Level Namespace

Defined Under Namespace

Modules: BackScrapeJob Classes: Backscript, BackscriptsController, CreateBackscripts, InitializerGenerator

Constant Summary collapse

BACKSCRIPT_DATA =
[ { :command_name => 'solr_start', :command => "cd #{Rails.root} && bundle exec rake sunspot:solr:start", :type_of_command => 'solr', :active => 'true'},
{ :command_name => 'solr_stop', :command => "cd #{Rails.root} && bundle exec rake sunspot:solr:stop", :type_of_command => 'solr', :active => 'true'},
{ :command_name => 'solr_status', :command => "cd #{Rails.root} && ps -ef | grep solr", :type_of_command => 'solr', :active => 'true'},
{ :command_name => 'reindex_solr',:command => "cd #{Rails.root} && bundle exec rake sunspot:solr:reindex",:type_of_command => 'solr',:active => 'true'}, 
{ :command_name => 'sidekiq_status', :command => "cd #{Rails.root} && ps -ef | grep sidekiq", :type_of_command => 'sidekiq', :active => 'true'},
{ :command_name => 'sidekiq_stop', :command => "cd #{Rails.root} && rake sidekiq:stop", :type_of_command => 'sidekiq', :active => 'true' },
{ :command_name => 'sidekiq_start', :command => "cd #{Rails.root} && rake sidekiq:start", :type_of_command => 'sidekiq', :active => 'true'},
{ :command_name => 'sidekiq_restart', :command => "cd #{Rails.root} && rake sidekiq:restart", :type_of_command => 'sidekiq', :active => 'true' },
{ :command_name => 'warc_start', :command => "cd #{Rails.root} && rake sidekiq:warc_start", :type_of_command => 'warc', :active => 'true' },
{ :command_name => 'warc_stop', :command => "cd #{Rails.root} && rake sidekiq:warc_stop", :type_of_command => 'warc', :active => 'true' },
{ :command_name => 'warc_restart', :command => "cd #{Rails.root} && rake sidekiq:warc_restart", :type_of_command => 'warc', :active => 'true' },
{ :command_name => 'nginx_start', :command => "cd #{Rails.root} && sudo service nginx start", :type_of_command => 'nginx', :active => 'true' },
{ :command_name => 'nginx_stop', :command => "cd #{Rails.root} && sudo service nginx stop", :type_of_command => 'nginx', :active => 'true' }, 
{ :command_name => 'nginx_status',:command => "cd #{Rails.root} && sudo service nginx status",:type_of_command => 'nginx', :active => 'true' },
{ :command_name => 'redis_start', :command => "cd #{Rails.root} && sudo service redis_6379 start", :type_of_command => 'redis', :active => 'true' },
{ :command_name => 'redis_stop', :command => "cd #{Rails.root} && sudo service redis_6379 stop", :type_of_command => 'redis', :active => 'true' } ,
{ :command_name => 'redis_status', :command => "cd #{Rails.root} && ps -ef | grep redis", :type_of_command => 'redis', :active => 'true' } ]