gpt4 book ai didi

html - 将纯 HTML 文件上传到 appfog

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

我是 Appfog 的新手,没有看到任何关于如何上传纯 html 文件的文档。当它询问我正在使用什么代码时,我不确定该选择什么:它列出了 python、flask、java 等作为选项,但没有列出 html。我应该在哪里放置 html 代码以及默认的 wsgi.py 文件应该做什么?

谢谢!

最佳答案

如果您想创建一个纯 HTML 应用程序,请使用 PHP 作为运行时并且不要使用独立,即使 af 工具检测到独立:

af push                
Would you like to deploy from the current directory? [Yn]: y
Application Name: [APP NAME]
Detected a Standalone Application, is this correct? [Yn]: n #<< NOPE
1: Rails
2: Spring
3: Grails
4: Lift
5: JavaWeb
6: Standalone
7: Sinatra
8: Node
9: PHP
10: Erlang/OTP Rebar
11: WSGI
12: Django
13: Rack
14: Play
Select Application Type: 9 #<< PHP will do
Selected PHP Application
1: AWS US East - Virginia
2: AWS EU West - Ireland
3: AWS Asia SE - Singapore
4: Rackspace AZ 1 - Dallas
5: HP AZ 2 - Las Vegas
Select Infrastructure: 1
Application Deployed URL [your app name.aws.af.cm]:
Memory reservation (128M, 256M, 512M, 1G, 2G) [128M]:
How many instances? [1]:
Bind existing services to 'app name'? [yN]: n #<< dont need services
Create services to bind to 'app name'? [yN]: n #<< no bindings
Would you like to save this configuration? [yN]: n

确保你的根文件夹有一个 index.html

关于html - 将纯 HTML 文件上传到 appfog,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14514218/

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