Code Monkey home page Code Monkey logo

dynamo_example's Introduction

DynamoExample

This is a project built with Elixir that uses Dynamo to serve web requests, for use on Heroku.

Resources:

Running on Heroku

You can run Dynamo on Heroku using the third-party Elixir buildpack. Clone this repository, then from within the project directory, do the following:

  1. Create the app:

    $ heroku create [app name]

  2. Set the custom buildpack:

    $ heroku config:add BUILDPACK_URL="https://github.com/goshakkk/heroku-buildpack-elixir.git" -a YOUR_APP

  3. Specify a preferred Erlang/OTP version by creating a .preferred_otp_version with contents OTP_R16B:

    $ echo "OTP_R16B" > .preferred_otp_version

  4. Specify a preferred Elixir version by creating a .preferred_elixir_version with contents master:

    $ echo "master" > .preferred_elixir_version

  5. Create a Procfile with a web process defined:

    $ echo 'web: MIX_ENV=prod mix server -p $PORT' > Procfile

  6. Add and commit your changes:

    $ git add Procfile .preferred_otp_version .preferred_elixir_version $ git commit -m "Setup for Heroku"

  7. Deploy!

    $ git push heroku master

dynamo_example's People

Contributors

catsby avatar

Stargazers

Brian Cobb 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.