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

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
主站蜘蛛池模板: 山阳县| 澄迈县| 太湖县| 孝义市| 通山县| 陇川县| 任丘市| 永城市| 荔浦县| 大荔县| 清徐县| 桦甸市| 四会市| 峨眉山市| 本溪市| 平江县| 拉萨市| 黔西| 汶上县| 文山县| 察雅县| 凤凰县| 楚雄市| 正阳县| 萨迦县| 吴旗县| 晋州市| 克拉玛依市| 灵璧县| 东港市| 陕西省| 新野县| 平定县| 阿图什市| 西安市| 上栗县| 昭通市| 太湖县| 双峰县| 乐陵市| 昆明市|