Skip to content

Commit

Permalink
feat: 重构构建脚本-重构serve命令脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Feb 2, 2023
1 parent f77a706 commit b60aeb4
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion scripts/serve.py
@@ -1 +1,18 @@
print("hello")
import os
import sys

if __name__ == "__main__":
CWD = "./"
if os.getcwd().endswith("scripts"):
CWD = "../"

# 打印当前python版本
print("当前python版本:" + sys.version)
# 打印当前路径
print("当前路径:" + os.getcwd())

print("切换路径")
os.chdir(CWD)
print("当前路径:" + os.getcwd())

os.system("vercel dev --listen 6006")

0 comments on commit b60aeb4

Please sign in to comment.