所以每天早上启动我的服务器,我需要做以下任务..
>> 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'