cardy31 / SimpleSinatraApp

A very simple app using the Ruby gem Sinatra

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Sinatra App

Here is how to run this on a basic Ubuntu/Debian server (I run it on a Raspberry Pi).

  1. Install Dependencies
apt-get install nginx
apt-get install ruby
gem install sinatra
gem install puma
  1. Copy nginx.conf to /etc/nginx/nginx.conf
  2. Restart Nginx with systemctl restart nginx
  3. Run rackup & in the same folder as your app

The app should now be served via HTTP.

About

A very simple app using the Ruby gem Sinatra


Languages

Language:Ruby 100.0%