运行Django local server,然后在shell别名中打开chrome页

2024-10-03 19:19:40 发布

您现在位置:Python中文网/ 问答频道 /正文

我有个化名坏了:

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服务器并在一个命令、不同的子进程中打开我的页面?谢谢


Tags: 命令服务器bitbucketcreategooglerepoalias页面