Code Monkey home page Code Monkey logo

aiesec-ntp-website's Introduction

Sinatra on OpenShift

This git repository will help you get up and running quickly with Sinatra on OpenShift.

The easiest way to deploy Sinatra on OpenShift is using the QuickStart on the OpenShift Hub

Configuring the Modular/Object, Views, or Mustache example code to run on OpenShift

If you would like to run any of the other examples included here on OpenShift just follow the below instructions:

  1. git clone your application onto your local machine
  2. copy the contents of the example folder that you want to use
  3. paste the copied files into your base application directory

Then you just need to commit your changes and git push them to your OpenShift gear

Running this application locally

Before running any of these examples, you should run the below command to make sure that you have the correct ruby gems installed

	bundle install

To run this application locally, cd into the sinatra-example directory that you cloned and run

	bundle exec ruby -S rackup -w config.ru

Also included are the following Sinatra examples.

Sinatra Views Example               example-views
Sinatra Modular Example             example-modular
Sinatra Modular Views Example       example-views-modular
Sinatra Modular Mustache Example    example-mustache-modular

Just cd into the appropriate directory and run the following commands:

	bundle install
	bundle exec ruby -S rackup -w config.ru

Thanks to:

Sinatra Mustache example based on: https://github.com/defunkt/mustache-sinatra-example

License

This code is dedicated to the public domain to the maximum extent permitted by applicable law, pursuant to CC0 http://creativecommons.org/publicdomain/zero/1.0/

aiesec-ntp-website's People

Contributors

mjalkio avatar danmcp avatar banzaiman avatar dblado avatar coreydaley avatar gshipley avatar mfojtik avatar bparees avatar fraunigai avatar kraman avatar mrunalp avatar waleo avatar

Watchers

James Cloos 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.