gpt4 book ai didi

heroku - 如何为 Windows 创建 Heroku procfile?

转载 作者:行者123 更新时间:2023-12-04 22:46:09 24 4
gpt4 key购买 nike

我是一个尝试制作 django 应用程序的新手,但不幸的是我的操作系统是 windows。
Heroku 文档是为 linux 编写的,所以我无法获得足够的信息用于 Windows 7 上的应用程序开发。
首先如何使用window cmd制作procfile?
有没有命令语言翻译文档?(linux->windows)

最佳答案

关于在 cmd shell 中创建文本文件:
echo web: run this thing >Procfile
这将创建 Procfileweb: run this thing里面(显然)。

您也可以使用任何文本编辑器,notepad将完美契合。

还有一件事,这对我来说并不明显,因此对其他人也有帮助。Procfile should be a text file有点误导,不要保存ProcfileProcfile.txt否则不会被识别。让它简单明了Procfile没有任何文件格式。

关于heroku - 如何为 Windows 创建 Heroku procfile?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25129958/

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