重新启动Rails服务器的Fish别名
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了重新启动Rails服务器的Fish别名相关的知识,希望对你有一定的参考价值。
Aliases command "go!" to starting AND restarting rails server for a project from anywhere in the filesystem. Replace PROJECT_HOME with the path to your project.Place in config.fish
alias go!="kill (cat PROJECT_HOME/tmp/pids/server.pid); cd PROJECT_HOME; rails s" OR (a bit more versatile and dangerous; will kill ALL rails processes, beware) alias go!="kill (ps auxw | grep "ruby.*rails" | grep -v "grep" | awk '{print $2}'); cd PROJECT_HOME; rails s"
以上是关于重新启动Rails服务器的Fish别名的主要内容,如果未能解决你的问题,请参考以下文章
(Rails)重新加载“lib”文件而无需重新启动服务器......? [复制]