Giter VIP home page Giter VIP logo

appengine-ruby's Introduction

Google App Engine Integration Tools

This repository contains the "appengine" gem, a collection of libraries and plugins for integrating Ruby apps with Google App Engine. It is not required for deploying a ruby application to Google App Engine, but it provides a number of convenience hooks for better integrating into the App Engine environment.

Currently, it includes:

  • A way to configure the Logger to log to the Google Cloud Console.

For more information on using Google Cloud Platform to deploy Ruby apps, please visit http://cloud.google.com/ruby

Installation

To install, include the "appengine" gem in your Gemfile. e.g.

gem "appengine"

If you are running Ruby On Rails 4.0 or later, this gem will automatically install a Railtie that provides its capabilities. You may need to include the line:

require "appengine"

in your config/application.rb file if you aren't already requiring all bundled gems. You may provide additional configuration via the config.appengine object. See below for more details.

If you are using a different Rack-based framework such as Sinatra, you can use the provided middlewares. See the more detailed instructions below.

Google Cloud Console logger integration

In order for your application logs to appear in the Google Cloud Console with the correct severities and other metadata, they should be written in a specific format to a specific location. The logger module in this gem provides tools to make that happen.

If you are using Ruby on Rails, and you do not otherwise customize your Rails logger, then the provided Railtie will direct your logs to the Cloud Console "out of the box". Normally, this is configured to take effect when running in the production environment, but you may also configure it for other environments. See the documentation for the AppEngine::Railtie class for more details.

If you are running a different Rack-based framework such as Sinatra, you should install the provided AppEngine::Logger::Middleware in your middleware stack. This should be installed instead of the normal Rack::Logger. It will automatically create a logger that directs entries to the Cloud Console, and will make it available via the standard Rack::RACK_LOGGER key in the Rack environment. You may also create your own logger directly using the AppEngine::Logger.create() method.

Development and support

The source code for this gem is available on Github at https://github.com/GoogleCloudPlatform/appengine-ruby

Report bugs on Github issues at https://github.com/GoogleCloudPlatform/appengine-ruby/issues

Contributions are welcome. Please review the CONTRIBUTING.md file.

appengine-ruby's People

Contributors

dazuma avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.