Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 966135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:06:31+00:00 2026-05-16T02:06:31+00:00

So every morning to boot up my server , I need to do the

  • 0

So every morning to boot up my server , I need to do the following tasks..

>> sunspot-solr stop
>> sunspot-solr start
>> script/console
>> Organization.reindex
>> Event.reindex
>> Deal.reindex
>> exit
>> script/server

Is there any way I can make a shortcut in my ~/.profile as an alias to perform all this for me without me typing it everyday?

Like this though it doesn’t work ?

alias blam='cur && sunspot-solr stop && sunspot-solr start && script/console && Organization.reindex && Event.reindex && Deal.reindex && exit && script/server'
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T02:06:32+00:00Added an answer on May 16, 2026 at 2:06 am

    Maybe this will ease some of the pain?

    #Rakefile
    desc "Reindex the organizations, events, and deals Solr indexes."
    task :reindex => :environment do
      Organization.reindex
      Event.reindex
      Deal.reindex
    end
    

    Then every morning run

    > sunspot-solr stop
    > sunspot-solr start
    > rake reindex
    > script/server
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Every now and again, I need to start the Django development server, and have
The Ruby script i am writing is going to be run every morning and
I need to run a task every 10 mins from morning 9 AM to
I need to create a table every morning based on overnight generated data from
I've got this regular problem every morning that my build server (Hudson) is always
Every morning at 2:00am (or when ever all the pivots finish building) I run
I have an application that I restart at 2 am every morning using Application.Restart();
Hai guys, I want to send scheduled mail every morning from my application and
Hai Guys, My application deals scheduled mail concept (i.e) every morning 6.00 am my
So every morning at work we have a stand-up meeting. We throw the nearest

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.