[英]run django local server than open chrome page in shell alias
我的别名已损坏:
alias runautohelper='runproject autohelper 8009 & ; google-chrome 127.0.0.1:8009/bitbucket/create-repo'
运行以上给出
cchilders:~/projects/autohelper [master]$ runautohelper
bash: syntax error near unexpected token `;'
但是运行:
alias runautohelper='runproject autohelper 8009; google-chrome 127.0.0.1:8009/bitbucket/create-repo'
导致服务器启动,并且除非退出服务器,否则第二条命令(页面打开)不会运行。 如何运行django服务器并使用一个命令(不同的子进程)打开页面? 谢谢
在后台运行它:
alias runautohelper='(runproject autohelper 8009 &) && (google-chrome 127.0.0.1:8009/bitbucket/create-repo &)'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.