Giter Club home page Giter Club logo

vienna's Introduction

Vienna

Vienna is a tiny, zero-configuration static file server built on top of rack. The goal is to place everything in /public, add two lines to our config.ru and let Vienna take care of the rest.

Why Vienna? Because it's an awesome city and It's the first thing that came to my mind. (I must have gotten the idea from Cuba.)

Installation

Add this line to your application's Gemfile:

gem 'vienna'

And then execute:

bundle

Or install it yourself, run:

gem install vienna

Usage

Place your static files in /public, optionally create /public/404.html and add this to your config.ru:

require 'vienna'
run Vienna

You're done. Now you can deploy to heroku or any other place that supports rack-based apps. This should also work for most apps built with Jekyll or Middleman as long as you follow the conventions stated above.

If you absolutely must change the root folder for some reason. You can use e.g. run Vienna::Application.new('_site') instead of run Vienna.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

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.