万本电子书0元读

万本电子书0元读

顶部广告

Heroku Cookbook电子书

售       价:¥

1人正在读 | 0人评论 9.8

作       者:Mike Coutermarsh

出  版  社:Packt Publishing

出版时间:2014-11-26

字       数:126.4万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(1条)
  • 读书简介
  • 目录
  • 累计评论(1条)
This book is intended for developers who want to learn what it takes to deploy and manage production level applications on Heroku. You may have already deployed applications to Heroku or may be entirely new to the platform. This book will get you up to speed quickly with all the knowledge needed to run real-world web applications on Heroku. When using the recipes in this book, it would be helpful to have some prior experience of working with Git and command line applications.
目录展开

Heroku Cookbook

Table of Contents

Heroku Cookbook

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Conventions

Reader feedback

Customer support

Downloading the color images of this book

Errata

Piracy

Questions

1. Getting Started with Heroku

Introduction

Installing the Heroku Toolbelt

Getting ready

How to do it...

How it works…

Authentication

See also

Introducing version control with Git

How to do it…

How it works…

There's more…

See also

Deploying a Rails application to Heroku

Getting ready

How to do it…

How it works…

The Procfile

Environment variables

The build process

See also

Deploying a Node.js application to Heroku

How to do it…

How it works…

The ephemeral filesystem

See also

Introducing dynos, workers, and scaling

What's a dyno?

What's a worker?

Process sizes

How to do it...

How it works…

Dynos

Workers

One-time dynos

See also

2. Managing Heroku from the Command Line

Introduction

Viewing application logs

How to do it…

How it works

See also

Searching logs

Getting ready

How to do it…

How it works…

See also

Installing add-ons

How to do it...

How it works…

See also

Managing environment variables

How to do it...

How it works…

See also

Enabling the maintenance page

How to do it...

See also

Managing releases and rolling back

How to do it...

How it works…

Running one-off tasks and dynos

How to do it...

How it works…

Managing SSH keys

How to do it…

How it works…

Sharing and collaboration

How to do it…

How it works…

See also

Monitoring load average and memory usage

How to do it…

How it works…

See also

3. Setting Up a Staging Environment

Introduction

Duplicating an existing application

How to do it...

How it works...

Add-ons

Config variables

Database

See also

Managing git remotes

How to do it...

How it works...

Password protection for a Rails app

Getting ready

How to do it…

How it works…

See also

Deploying with Heroku labs – Pipeline

How to do it…

How it works…

See also

Deploying from tags

How to do it…

How it works…

See also

Continuous integration and deployment with Travis CI

Getting ready

How to do it…

How it works…

Debugging

See also

4. Production-ready with Heroku

Introduction

Managing domains from the command line

How to do it…

How it works…

See also

Configuring DNS with CloudFlare

Getting ready

How to do it...

How it works...

Setting up SSL with CloudFlare

Getting ready

How to do it…

How it works…

Enabling preboot for seamless deploys

How to do it...

How it works...

Enabling custom maintenance and error pages

Getting ready

How to do it…

How it works…

Setting up a status page

How to do it…

How it works…

See also

Setting up log draining with LogEntries

How to do it…

How it works…

See also

5. Error Monitoring and Logging Tools

Introduction

Checking Heroku's status

How to do it…

How it works…

Adjusting Rails's logging level

Getting ready

How to do it…

How it works…

See also

Storing historical logs with PaperTrail

How to do it…

How it works…

See also

Monitoring for 404 and 500 errors with PaperTrail

How to do it…

How it works…

See also

Logging slow queries with PaperTrail

How to do it…

How it works…

See also

Monitoring uptime with Pingdom

How to do it…

How it works…

See also

Logging errors with Rollbar

Getting ready

How to do it…

How it works…

See also

6. Load Testing a Heroku Application

Introduction

Monitoring dyno performance with Librato

How to do it…

How it works…

See also

Monitoring application performance with New Relic

How to do it…

How it works…

See also

Learning to load test with Siege

Getting ready

How to do it…

How it works…

See also

Configuring complex load tests with Siege

How to do it…

How it works…

Load testing from the cloud with Blitz.io

Getting ready

How to do it…

How it works…

See also

Testing real-user scenarios with Load Impact

Getting ready

How to do it…

How it works…

See also

7. Optimizing Ruby Server Performance on Heroku

Introduction

Setting up and running Unicorn on Heroku

How to do it…

How it works

See also

Monitoring and tuning Unicorn's memory usage

How to do it…

How it works…

See also

Tuning Unicorn's backlog for Heroku

How to do it…

How it works…

See also

Timing out long requests with Unicorn

How to do it…

How it works…

See also

Setting up and running Puma on Heroku

How to do it…

How it works…

See also

Running Puma with Rubinius for parallelism

How to do it…

How it works…

See also

8. Optimizing a Rails Application on Heroku

Introduction

Setting up a sample blogging app

How to do it…

See also

Using Heroku Deflater to gzip assets

Getting ready

How to do it…

How it works…

See also

Serving assets from Amazon Web Services (AWS) Cloudfront

Getting ready

How to do it…

How it works…

See also

Adding memcached to a Rails application

Getting ready…

How to do it…

How it works…

See also

Adding Redis to a Rails application

Getting ready…

How to do it…

How it works…

See also

Implementing low-level caching in Rails

Getting ready

How to do it…

How it works…

See also

Caching rendered views

How to do it…

How it works…

See also

Aborting long requests with Rack::Timeout

How to do it…

How it works…

See also

Using a follower for read-only DB queries

Getting ready

How to do it…

Using the follower database

How it works…

See also

9. Using and Administrating Heroku Postgres

Introduction

Creating and sizing a new database

How to do it…

Selecting a tier

Determining data size

Connection limits

Selecting and creating the database

How it works…

See also

Promoting a Heroku database

How to do it…

How it works…

Connecting to Heroku Postgres from Navicat

Getting ready

How to do it…

How it works…

See also

Connecting to Heroku Postgres from psql

How to do it…

How it works…

See also

Creating a database backup

How to do it…

How it works…

See also

Restoring from a backup

Getting ready

How to do it…

How it works…

See also

Creating a read-only follower

How to do it…

How it works…

Redundancy

Horizontal scaling

See also

Viewing and stopping database processes

How to do it…

How it works…

See also

Analyzing Heroku Postgres's performance

Getting ready

How to do it…

How it works…

See also

10. The Heroku Platform API

Introduction

Making our first API request with HTTPie

Getting ready

OS X

Linux

Windows

How to do it…

How it works…

See also

Getting started with the Platform API gem

Getting ready

How to do it…

How it works…

Heroics

Pry

See also

Scaling dynos and workers

How to do it…

How it works…

See also

Managing configuration variables

How to do it…

How it works…

See also

Adding and removing collaborators

How to do it…

How it works…

See also

Creating new Heroku applications

How to do it…

How it works…

See also

Index

累计评论(1条) 4个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部