将仅HTML文件上传到appfog

时间:2013-01-25 02:07:43

标签: html web upload appfog

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

谢谢!

1 个答案:

答案 0 :(得分:4)

如果你想创建一个只有HTML的应用程序,使用PHP作为运行时,不要使用独立,即使af工具检测到standanlone:

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