Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwplvx
Aurora
提交
80b38899
Aurora
项目概览
lwplvx
/
Aurora
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Aurora
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
80b38899
编写于
7月 07, 2021
作者:
lwplvx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
启动参数 增加环境变量
上级
230bd6ee
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
9 deletion
+17
-9
Scripts/Deploy/buildrun.py
Scripts/Deploy/buildrun.py
+3
-3
Scripts/Deploy/run.py
Scripts/Deploy/run.py
+14
-6
未找到文件。
Scripts/Deploy/buildrun.py
浏览文件 @
80b38899
...
...
@@ -94,8 +94,8 @@ runPath = os.path.join(work_space)
start_dotnetservice
(
s_name
,
runPath
,
9000
)
# HttpReports
#
s_name = 'Aurora.HttpReports'
#
runPath = os.path.join(work_space)
#
start_dotnetservice(s_name, runPath, 9100)
s_name
=
'Aurora.HttpReports'
runPath
=
os
.
path
.
join
(
work_space
)
start_dotnetservice
(
s_name
,
runPath
,
9100
)
iStr
=
input
(
'输入任意字符以结束……'
)
Scripts/Deploy/run.py
浏览文件 @
80b38899
...
...
@@ -39,13 +39,13 @@ def poutput(name, pid): # 定义函数名
# dotnet Aurora.Gateway.dll --urls "http://*:6002"
# dotnet build E:\Workspace\aurora\Aurora.Gateway\Aurora.Gateway.csproj ;cd E:\Workspace\aurora\Aurora.Gateway\bin\Debug\net5.0;dotnet Aurora.Gateway.dll
def
start_dotnetservice
(
name
,
runPath
,
port
):
def
start_dotnetservice
(
name
,
runPath
,
port
,
env
=
'Development'
):
print
(
'启动 '
+
name
)
projectPath
=
os
.
path
.
join
(
runPath
,
name
)
dllPath
=
os
.
path
.
join
(
projectPath
,
r
'bin\Debug\net5.0'
)
# subprocess.run('dotnet build', shell=True, cwd=projectPath)
ret
=
subprocess
.
Popen
(
'dotnet {}.dll --urls "http://*:{}"'
.
format
(
name
,
port
),
shell
=
True
,
cwd
=
dllPath
)
ret
=
subprocess
.
Popen
(
'dotnet {}.dll --urls "http://*:{}"
--environment {}
'
.
format
(
name
,
port
,
env
),
shell
=
True
,
cwd
=
dllPath
)
poutput
(
pid_output
,
"service {},pid {}"
.
format
(
name
,
str
(
ret
.
pid
)))
...
...
@@ -65,6 +65,14 @@ start_service('Consul', 'consul agent -dev')
# cmd 查看端口占用 netstat -aon|findstr "8500"
# cmd 杀死进程 taskkill /f /pid 18xx8
# dotnet run --launch-profile "SampleApp"
# 设置环境变量 Windows 命令行:
# setx ASPNETCORE_ENVIRONMENT "Development"
# 设置环境变量 PowerShell命令:
# $Env:ASPNETCORE_ENVIRONMENT = "Development"
# MacOS/Linux
# export ASPNETCORE_ENVIRONMENT=development
# Gateway
s_name
=
'Aurora.Gateway'
...
...
@@ -94,8 +102,8 @@ runPath = os.path.join(work_space)
start_dotnetservice
(
s_name
,
runPath
,
9000
)
# HttpReports
#
s_name = 'Aurora.HttpReports'
#
runPath = os.path.join(work_space)
#
start_dotnetservice(s_name, runPath, 9100)
s_name
=
'Aurora.HttpReports'
runPath
=
os
.
path
.
join
(
work_space
)
start_dotnetservice
(
s_name
,
runPath
,
9100
)
iStr
=
input
(
'输入任意字符以结束……'
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录