したがって、毎朝サーバーを起動するには、次のタスクを実行する必要があります..
>> sunspot-solr stop
>> sunspot-solr start
>> script/console
>> Organization.reindex
>> Event.reindex
>> Deal.reindex
>> exit
>> script/server
~/.profile にエイリアスとしてショートカットを作成して、毎日入力せずにこれらすべてを実行する方法はありますか?
このように動作しませんか?
alias blam='cur && sunspot-solr stop && sunspot-solr start && script/console && Organization.reindex && Event.reindex && Deal.reindex && exit && script/server'