Navigation Menu

Skip to content

Commit

Permalink
Setting the app up for Heroku.
Browse files Browse the repository at this point in the history
 * Adding the proper gems, including Dalli and MemCachier.
 * Creating a simple view and controller.
  • Loading branch information
alexlod committed Oct 19, 2012
1 parent 41e5115 commit d40ceb7
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 353 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -13,3 +13,5 @@
# Ignore all logfiles and tempfiles.
/log/*.log
/tmp

config/database.yml
33 changes: 4 additions & 29 deletions Gemfile
@@ -1,38 +1,13 @@
source 'https://rubygems.org'

gem 'rails', '3.2.5'
gem 'jquery-rails'
gem 'pg'
gem 'dalli', '>=2.3.0'
gem 'memcachier'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'


# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby

gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the app server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'debugger'
8 changes: 6 additions & 2 deletions Gemfile.lock
Expand Up @@ -37,6 +37,7 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.3.3)
dalli (2.3.0)
erubis (2.7.0)
execjs (1.4.0)
multi_json (~> 1.0)
Expand All @@ -51,8 +52,10 @@ GEM
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
memcachier (0.0.1)
mime-types (1.19)
multi_json (1.3.6)
pg (0.13.2)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
Expand Down Expand Up @@ -88,7 +91,6 @@ GEM
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.6)
thor (0.16.0)
tilt (1.3.3)
treetop (1.4.11)
Expand All @@ -104,8 +106,10 @@ PLATFORMS

DEPENDENCIES
coffee-rails (~> 3.2.1)
dalli (>= 2.3.0)
jquery-rails
memcachier
pg
rails (= 3.2.5)
sass-rails (~> 3.2.3)
sqlite3
uglifier (>= 1.0.3)
4 changes: 4 additions & 0 deletions app/controllers/main_controller.rb
@@ -0,0 +1,4 @@
class MainController < ApplicationController
def index
end
end
1 change: 1 addition & 0 deletions app/views/main/index.html.erb
@@ -0,0 +1 @@
Nothing to see here.
25 changes: 0 additions & 25 deletions config/database.yml

This file was deleted.

57 changes: 1 addition & 56 deletions config/routes.rb
@@ -1,58 +1,3 @@
RailsSandbox::Application.routes.draw do
# The priority is based upon order of creation:
# first created -> highest priority.

# Sample of regular route:
# match 'products/:id' => 'catalog#view'
# Keep in mind you can assign values other than :controller and :action

# Sample of named route:
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
# This route can be invoked with purchase_url(:id => product.id)

# Sample resource route (maps HTTP verbs to controller actions automatically):
# resources :products

# Sample resource route with options:
# resources :products do
# member do
# get 'short'
# post 'toggle'
# end
#
# collection do
# get 'sold'
# end
# end

# Sample resource route with sub-resources:
# resources :products do
# resources :comments, :sales
# resource :seller
# end

# Sample resource route with more complex sub-resources
# resources :products do
# resources :comments
# resources :sales do
# get 'recent', :on => :collection
# end
# end

# Sample resource route within a namespace:
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end

# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
# root :to => 'welcome#index'

# See how all your routes lay out with "rake routes"

# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
# match ':controller(/:action(/:id))(.:format)'
root :to => 'main#index'
end

0 comments on commit d40ceb7

Please sign in to comment.