7.03 Platform-as-a-service

平台即服务 Platform-as-a-service

平台即服务 (PaaS)提供了基础设施以及一个软件层,让web应用部署其上。在Paas上运行web应用,你就无需知道底层的服务器,操作系统,web服务器,WSGI服务器等。

PaaS定义了应用如何访问计算时间、文件、外部服务等资源,提供了相对IaaS更加高层次的抽象。

PaaS让部署变得更容易。比如,Heroku会在仓库的根目录下查找Python的requirements.txt文件。

Traditional LAMP server stack versus a Platform-as-a-Service stack

如果使用PaaS,你就无需考虑配置操作系统、web服务器,PaaS会提供WSGI服务器层作为你工作的起点。

PaaS的责任 responsibilities

要知道你所用的PaaS使用什么操作系统会有所帮助。比如Heroku使用Ubuntu 10.04。部署人员有责任确保web应用的安全。

支持Python的PaaS

PaaS资源

PaaS学习清单

  1. Review the potential Python platform-as-a-service options listed above.
  2. Sign up for a PaaS account at the provider that appears to best fit your application needs. Heroku is the PaaS option recommended for starters due to their detailed documentation and walkthroughs available on the web. However, the other options are also viable since their purpose is to make deploying applications as easy as possible.
  3. Check if there are any PaaS-specific configuration files needed for your app to run properly on the PaaS after it is deployed.
  4. Deploy your app to the PaaS.
  5. Sync your application’s configuration with the database.
  6. Set up a content delivery network for your application’s static content unless your PaaS provider already handles this deployment step for you.
  7. Check if the application’s functionality is working and tweak as necessary.

发表评论

电子邮件地址不会被公开。 必填项已用*标注