gpt4 book ai didi

python - 运行 django 本地服务器而不是在 shell 别名中打开 chrome 页面

转载 作者:太空宇宙 更新时间:2023-11-04 10:39:56 25 4
gpt4 key购买 nike

我有一个坏了的别名:

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 &)'

关于python - 运行 django 本地服务器而不是在 shell 别名中打开 chrome 页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35567435/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com