This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set nginx base image | |
FROM nginx | |
# Copy custom configuration file from the current directory | |
COPY nginx.conf /etc/nginx/nginx.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lib/store_stylesheet.rb | |
class StoreStylesheet | |
def initialize(store) | |
@store = store | |
end | |
# The path of the compiled stylesheet, i.e. stores/id_timestamp.css | |
def stylesheet_file | |
filename = [ | |
@store.id, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'sinatra', git: 'git://github.com/sinatra/sinatra.git' | |
gem 'sequel' | |
gem 'sqlite3' | |
gem 'yajl-ruby', require: 'yajl' |