Giter VIP home page Giter VIP logo

heroku-sinatra's Introduction

heroku-sinatra

A Sinatra template for Heroku (and heroku-docker!) with some extra goodies included.

This repository rips takes a page out of Heroku's book of "getting started" repositories; it provides a scaffold for a Sinatra app that you can run out of the box with standard Heroku tools. Heroku provides a couple of fantastic starting points for a variety of platforms on GitHub, including a Rails app. This is just a Sinatra variation on the theme.

caveat emptor: This repository includes a bunch of tools that I personally find useful. You probably have opinions of your own, and you may not want them!

  • RSpec for behavior-driven design
  • Pry for a better REPL
  • Guard for filesystem-aware automation (in this case, of test running)

Using Docker

Heroku's heroku-docker plugin is a fantastic way to get the best of both worlds: easy local development with Docker and (almost) foolproof production on Heroku. All you need to start is the Heroku Toolbelt.

Make sure the plugin is installed:

heroku plugins:install heroku-docker

Configure Docker and Docker Compose:

heroku docker:init

And run the app locally:

docker-compose up web

The app will now be available on the Docker daemon IP on port 8080.

To run one-off commands, ie. database migrations or and other rake tasks, you can open a shell instead of a web worker:

docker-compose run shell
# bundle exec rake -T

You can also use Docker to release to Heroku:

heroku create
heroku docker:release
heroku open

Contribute

Contributions are always welcome. Submit a pull request or send me an email with suggestions.

This project is released under the MIT license.

Jordan Ryan Reuter (mailto:[email protected])

heroku-sinatra's People

Stargazers

 avatar

Watchers

 avatar  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.