Logo

0x5a.live

for different kinds of informations and explorations.

GitHub - KazuCocoa/revision_plate_ex: Plug application and middleware that serves endpoint returns application's REVISION.

Plug application and middleware that serves endpoint returns application's REVISION. - KazuCocoa/revision_plate_ex

Visit SiteGitHub - KazuCocoa/revision_plate_ex: Plug application and middleware that serves endpoint returns application's REVISION.

GitHub - KazuCocoa/revision_plate_ex: Plug application and middleware that serves endpoint returns application's REVISION.

Plug application and middleware that serves endpoint returns application's REVISION. - KazuCocoa/revision_plate_ex

Powered by 0x5a.live ๐Ÿ’—

Build Status

RevisionPlateEx

Plug application and middleware that serves endpoint returns application's REVISION.

See also revision_plate which is implemented with Ruby.

Document is here.

Requirement

Elixir ~> 1.4

Quick use as standalone server

  1. Add revision_plate_ex to your list of dependencies in mix.exs:
      def deps do
        [{:revision_plate_ex, "~> 0.4.1"}]
      end
  1. Ensure revision_plate_ex is started before your application:
      def application do
        [applications: [:revision_plate_ex]]
      end
  1. Create REVISION file in root path.
  2. Start application
  3. Access to http://localhost:4000/hello/revision via browser, then the server return binary written in REVISION

Use with Phoenix

Read document associated with RevisionPlateEx.Hello.revision/1

Configurations

Can use two configurations.

use Mix.Config

config :revision_plate_ex,
  http_port: 8000,         # Used only standalone mode. Default is `4000`.
  file_path: "REVISION"    # Used anyone would like to customize path to revision file. Default is "REVISION".

LICENSE

MIT. Read LICENSE file.

Elixir Resources

are all listed below.

Resources

listed to get explored on!!

Made with โค๏ธ

to provide different kinds of informations and resources.