Skip to content

Commit

Permalink
Merge branch 'deploy'
Browse files Browse the repository at this point in the history
Conflicts:
	app/controllers/application_controller.rb
	app/views/user_sessions/new.html.haml
	config/environment.rb
	config/geminstaller.yml
	public/stylesheets/sass/quorum.sass
  • Loading branch information
marnen committed Sep 2, 2011
2 parents 0550c6d + 1ab70d3 commit 0a312dd
Show file tree
Hide file tree
Showing 15 changed files with 163 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
class ApplicationController < ActionController::Base
filter_parameter_logging :password
helper_method :current_user_session, :current_user
include ExceptionNotifiable

before_filter :set_gettext_locale

Expand Down
3 changes: 3 additions & 0 deletions config/config-orig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ production:
user_name: SMTP_USER_NAME
password: SMTP_PASSWORD

# Recipients for exception notifications.
exception_recipients:
- RECIPIENT
3 changes: 3 additions & 0 deletions config/deploy-orig.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
run "rm -f #{rpath}/config/#{file}"
run "ln -s #{deploy_to}/shared/config/#{file} #{rpath}/config/#{file}"
end

# Remove image source files.
run "rm -rf #{rpath}/public/images/sources"

#run "chown www-data #{current_path}/config/environment.rb"

Expand Down
5 changes: 4 additions & 1 deletion config/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,7 @@
end

# Now set up Haml properties.
Haml::Template.options[:format] = :html4
Haml::Template.options[:format] = :html4

# Set up ExceptionNotifier.
ExceptionNotifier.exception_recipients = APP_CONFIG['exception_recipients']
3 changes: 2 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
config.action_mailer.delivery_method = :smtp
smtp = APP_CONFIG['smtp']
config.action_mailer.smtp_settings = {
:enable_starttls_auto => true,
:address => smtp['address'],
:port => smtp['port'],
:user_name => smtp['user_name'],
:password => smtp['password'],
:authentication => :plain
:authentication => (smtp['authentication'] || :plain)
}
2 changes: 1 addition & 1 deletion db/migrate/012_add_feed_key_to_users.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class AddFeedKeyToUsers < ActiveRecord::Migration
def self.up
# This is a unique key for each user's RSS feeds
execute 'ALTER TABLE users ADD COLUMN feed_key char(32) NOT NULL DEFAULT md5(random())' # can't do computed defaults in Rails migrations yet :(
execute "ALTER TABLE users ADD COLUMN feed_key char(32) NOT NULL DEFAULT md5(random() || '')" # can't do computed defaults in Rails migrations yet :(
add_index :users, :feed_key, :unique => true
end

Expand Down
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

create_table "commitments", :force => true do |t|
t.column "event_id", :integer, :null => false
t.column "user_id", :integer, :null => false
t.column "status", :boolean
t.column "user_id", :integer
end

create_table "countries", :force => true do |t|
Expand Down
2 changes: 1 addition & 1 deletion doc/README_FOR_APP
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Use this README file to introduce your application and point to useful places in
Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.

Icon sources:
circle_*.png:: Marnen Laibow-Koser (hey, I can at least draw a circle!)
attend_*.png:: Marnen Laibow-Koser (hey, I can at least draw a circle!)
feed-icon-14x14.png:: http://www.feedicons.com
pdf-icon-16x16.png:: ??? I no longer remember where this icon came from.
progress.gif:: Generated by http://www.ajaxload.info/ (background black and transparent, foreground white)
Expand Down
Binary file added public/images/attend_maybe.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/attend_no.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file removed public/images/circle_f00.png
Binary file not shown.
Binary file removed public/images/circle_ff0.png
Binary file not shown.
74 changes: 74 additions & 0 deletions public/images/sources/attend_maybe.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 73 additions & 0 deletions public/images/sources/attend_no.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0a312dd

Please sign in to comment.