22 Commits

Author SHA1 Message Date
Thomas Buchöster 5ce5201a78 Re-adds all images in /icons folder (Icon? fail again) 2013-01-12 00:30:37 +01:00
Thomas Buchöster bf2741cd22 Falls back to asset pipeline if asset is not precompiled 2013-01-12 00:20:07 +01:00
Thomas Buchöster 8ba47ea5c7 Removes pre-compilation expression to match all files 2013-01-12 00:15:04 +01:00
Thomas Buchöster 9f8b009b92 Removes sass_config.rb (used by jammit) 2013-01-12 00:05:28 +01:00
Thomas Buchöster ecb71e7860 Takes some pieces from a rails 3.2 default application.rb file 2013-01-12 00:01:04 +01:00
Thomas Buchöster 1ef301edc6 Removes X-Sendfile header 2013-01-11 23:48:11 +01:00
Thomas Buchöster 8ac287e8bd Adds image formats to precompile list 2013-01-11 23:44:01 +01:00
Thomas Buchöster 010f302869 Revert "Introduces 'image_path' for all image assets"
This reverts commit 032182d8d1.
2013-01-11 23:30:08 +01:00
Thomas Buchöster 4b0f4df5b4 Tries a heroku-fix to force image pre-compilation 2013-01-11 23:22:07 +01:00
Thomas Buchöster 4113374201 Stops heroku to die when precompiling assets 2013-01-11 22:52:41 +01:00
Thomas Buchöster 61fcba08d4 Makes routes more concrete (removes 'match' and uses 'get' instead) 2013-01-11 22:48:38 +01:00
Thomas Buchöster 032182d8d1 Introduces 'image_path' for all image assets 2013-01-11 22:48:04 +01:00
Thomas Buchöster 7936965cb6 Adds pg gem for production 2013-01-11 21:48:50 +01:00
Thomas Buchöster f44750d0b6 Adjusts .gitignore 2013-01-11 21:35:49 +01:00
Thomas Buchöster 64e0abda5a Hopefully fixes weird commit conflicts + changes gitignore 2013-01-11 21:33:01 +01:00
Thomas Buchöster 49450c641c Patches rails to 3.2.11 2013-01-11 21:24:15 +01:00
Thomas Buchöster 071735a24d added 'lib' directory to autoload_once_paths in production environment 2011-07-10 11:01:58 +02:00
Thomas Buchöster 15ec53ea18 fixed problem when reading Redis URI 2011-07-08 16:46:35 +02:00
Thomas Buchöster 98435ba5f9 could not get environment of heroku app, though changed ways to check the current environment 2011-07-08 16:35:26 +02:00
Thomas Buchöster ce709b6e9e added redis settings to config, changed config keys to uppercase 2011-07-07 10:31:38 +02:00
Thomas Buchöster a4098e2bc6 changed settings for the env variables 2011-07-07 09:39:23 +02:00
Thomas Buchöster be96e40339 minor style fixes, prepared environment variables for deploy on heroku 2011-07-02 16:49:00 +02:00
38 changed files with 78 additions and 47 deletions
+1 -2
View File
@@ -3,7 +3,6 @@ db/*.sqlite3
log/*.log
tmp/
Icon*
.DS_Store
dump.rdb
Thumbs.db
@@ -14,4 +13,4 @@ Thumbs.db
/public/.sass-cache/
/public/media/
/public/assets/
/public/cache/
/public/cache/
+3 -1
View File
@@ -2,7 +2,7 @@ source 'http://rubygems.org'
gem 'rake'
gem 'rails', '3.2.8'
gem 'rails', '3.2.11'
gem 'jquery-rails', '1.0.12'
# templating
@@ -32,6 +32,8 @@ gem 'omniauth-openid'
# for file upload ( -> avatar )
gem 'paperclip', '~> 2.3'
gem 'pg', group: :production
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
+32 -29
View File
@@ -4,31 +4,31 @@ GEM
7digital (0.1.2)
nokogiri (>= 1.5.0)
oauth (>= 0.4.5)
actionmailer (3.2.8)
actionpack (= 3.2.8)
actionmailer (3.2.11)
actionpack (= 3.2.11)
mail (~> 2.4.4)
actionpack (3.2.8)
activemodel (= 3.2.8)
activesupport (= 3.2.8)
actionpack (3.2.11)
activemodel (= 3.2.11)
activesupport (= 3.2.11)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.4)
rack (~> 1.4.0)
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.1.3)
activemodel (3.2.8)
activesupport (= 3.2.8)
sprockets (~> 2.2.1)
activemodel (3.2.11)
activesupport (= 3.2.11)
builder (~> 3.0.0)
activerecord (3.2.8)
activemodel (= 3.2.8)
activesupport (= 3.2.8)
activerecord (3.2.11)
activemodel (= 3.2.11)
activesupport (= 3.2.11)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.8)
activemodel (= 3.2.8)
activesupport (= 3.2.8)
activesupport (3.2.8)
activeresource (3.2.11)
activemodel (= 3.2.11)
activesupport (= 3.2.11)
activesupport (3.2.11)
i18n (~> 0.6)
multi_json (~> 1.0)
arel (3.0.2)
@@ -72,7 +72,7 @@ GEM
jquery-rails (1.0.12)
railties (~> 3.0)
thor (~> 0.14)
json (1.7.5)
json (1.7.6)
jwt (0.1.5)
multi_json (>= 1.0)
mail (2.4.4)
@@ -110,8 +110,9 @@ GEM
activesupport (>= 2.3.2)
cocaine (>= 0.0.2)
mime-types
pg (0.14.1)
polyglot (0.3.3)
rack (1.4.1)
rack (1.4.3)
rack-cache (1.2)
rack (>= 0.4)
rack-openid (1.3.1)
@@ -121,17 +122,17 @@ GEM
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (3.2.8)
actionmailer (= 3.2.8)
actionpack (= 3.2.8)
activerecord (= 3.2.8)
activeresource (= 3.2.8)
activesupport (= 3.2.8)
rails (3.2.11)
actionmailer (= 3.2.11)
actionpack (= 3.2.11)
activerecord (= 3.2.11)
activeresource (= 3.2.11)
activesupport (= 3.2.11)
bundler (~> 1.0)
railties (= 3.2.8)
railties (3.2.8)
actionpack (= 3.2.8)
activesupport (= 3.2.8)
railties (= 3.2.11)
railties (3.2.11)
actionpack (= 3.2.11)
activesupport (= 3.2.11)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
@@ -152,8 +153,9 @@ GEM
tilt (~> 1.3)
sexp_processor (4.1.3)
simple_oauth (0.1.9)
sprockets (2.1.3)
sprockets (2.2.2)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.6)
@@ -196,7 +198,8 @@ DEPENDENCIES
omniauth-facebook
omniauth-openid
paperclip (~> 2.3)
rails (= 3.2.8)
pg
rails (= 3.2.11)
rake
redis
redis-namespace
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 824 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

+31 -1
View File
@@ -1,7 +1,7 @@
require File.expand_path('../boot', __FILE__)
require 'rails/all'
Bundler.require(:default, Rails.env) if defined?(Bundler)
Bundler.require(:default, :assets, Rails.env) if defined?(Bundler)
module Nineminutes
class Application < Rails::Application
@@ -14,13 +14,43 @@ module Nineminutes
# asset packaging
config.serve_static_assets = true
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named.
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
# Activate observers that should always be running.
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
config.time_zone = 'Vienna'
config.active_record.default_timezone = :local
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = 'de-AT'
# config.i18n.available_locales = 'de-AT'
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"
# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password]
# Enforce whitelist mode for mass assignment.
# This will create an empty whitelist of attributes available for mass-assignment for all models
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
# parameters by using an attr_accessible or attr_protected declaration.
config.active_record.whitelist_attributes = true
# Enable the asset pipeline
config.assets.enabled = true
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
config.assets.initialize_on_precompile = false
# Defaults to '/assets'
# config.assets.prefix = '/asset-files'
end
+2 -2
View File
@@ -11,7 +11,7 @@ Nineminutes::Application.configure do
config.action_controller.perform_caching = true
# Specifies the header that your server uses for sending files
config.action_dispatch.x_sendfile_header = "X-Sendfile"
# config.action_dispatch.x_sendfile_header = "X-Sendfile"
# For nginx:
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
@@ -61,7 +61,7 @@ Nineminutes::Application.configure do
# config.assets.manifest = YOUR_PATH
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
# config.assets.precompile += %w( search.js )
# config.assets.precompile += %w()
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true
-3
View File
@@ -1,3 +0,0 @@
output_style = ::Rails.env == "production" ? :compressed : :nested
Sass::Plugin.options[:style] = output_style
+9 -9
View File
@@ -15,20 +15,20 @@ Nineminutes::Application.routes.draw do
get "/logout" => "devise_auth/sessions#destroy", :as => :destroy_user_session
end
match "/search_video", :to => "tracks#search_video"
get "/search_video", :to => "tracks#search_video"
resources :artists, :only => [ :show ], :constraints => { :id => /.*/ }
match "/more_tracks", :to => "artists#more_tracks"
match "/more_albums", :to => "artists#more_albums"
match "/album_info", :to => "artists#album_info"
match "/favourize", :to => "artists#favourize"
get "/more_tracks", :to => "artists#more_tracks"
get "/more_albums", :to => "artists#more_albums"
get "/album_info", :to => "artists#album_info"
get "/favourize", :to => "artists#favourize"
resources :search, :only => [ :show ], :constraints => { :id => /.*/ }
match "/more_artists", :to => "search#more_artists"
match "/autocomplete", :to => "search#autocomplete"
get "/more_artists", :to => "search#more_artists"
get "/autocomplete", :to => "search#autocomplete"
match "/more_charts", :to => "charts#more"
match "/charts", :to => "charts#index"
get "/more_charts", :to => "charts#more"
get "/charts", :to => "charts#index"
resources :users, :only => [ :show, :update, :edit, :create ]