官术网_书友最值得收藏!

Modeling a simple Python application

Here we will consider a web.py application that has two primary components: a web server and a database server. We will provision one host for each role, bootstrap them, and deploy the software onto our new hosts.

Our application stack will consist of the following:

  • web.py as our web framework
  • PostgreSQL for data storage
  • EC2 for virtual hosts

We want to define two primary roles that represent our web server and our database server. In addition, we will construct a baseline role for all our servers that will supply any common data we need such as user accounts, SSH keys, network configuration data, shells, common utilities, libraries, and so on.

We will need to find or write cookbooks for the following components we will use:

  • Python
  • supervisord
  • PostgreSQL
  • User accounts
  • Our custom web application
主站蜘蛛池模板: 于田县| 洛川县| 铜鼓县| 海宁市| 固安县| 余庆县| 阳谷县| 辛集市| 邛崃市| 格尔木市| 紫金县| 阿荣旗| 台山市| 连平县| 田阳县| 湘乡市| 甘肃省| 垣曲县| 湖州市| 兰溪市| 昌平区| 正镶白旗| 财经| 五大连池市| 云安县| 南阳市| 宿迁市| 芜湖县| 榆社县| 永济市| 新巴尔虎右旗| 海南省| 德清县| 金阳县| 海阳市| 白山市| 商洛市| 莱芜市| 阿拉善左旗| 威信县| 武陟县|