diff --git a/binaryattraction_facebooker.rb b/binaryattraction_facebooker.rb index 785ec8a..2609dc8 100755 --- a/binaryattraction_facebooker.rb +++ b/binaryattraction_facebooker.rb @@ -424,7 +424,7 @@ __END__ %img#ajax_loading{ :alt => 'loading', :src => 'http://static.ak.fbcdn.net/images/upload_progress.gif?1:25923' } %br{ :style => 'clear: both' } %div#ba_content - %img{ :src => 'http://binaryattraction.com/images/binarattraction.png', :style => 'display: block; margin-left: auto; margin-right: auto' } + %img{ :src => 'http://binaryattraction.com/images/binaryattraction.png', :style => 'display: block; margin-left: auto; margin-right: auto' } %h1 What this is all about %blockquote All you young guys are on a binary system. It's either 0 or 1. @@ -538,5 +538,5 @@ __END__ %td= ba_user.votes.select { |v| v.zero? }.size @@ invite -%fb:request-form{ :type => 'Binary Attraction', :content => "Your friends think you should check out your oneness at ", :action => 'http://apps.binaryattraction.com/binaryattraction', :invite => true, :method => 'POST' } +%fb:request-form{ :type => 'Binary Attraction', :content => "Your friends think you should check out your oneness at ", :action => 'http://apps.facebook.com/binaryattraction', :invite => true, :method => 'POST' } %fb:multi-friend-selector{ :actiontext => "Invite your friends to vote on ones (and not ones)", :showborder => true, :exclude_ids => session[:facebook_session].user.friends_with_this_app.map(&:id).join(","), :bypass => "cancel" } diff --git a/facebook.ru b/config.ru similarity index 99% rename from facebook.ru rename to config.ru index 160f4f2..2c0fefd 100644 --- a/facebook.ru +++ b/config.ru @@ -8,3 +8,4 @@ Sinatra::Application.default_options.merge!( require 'binaryattraction_facebooker' run Sinatra.application + diff --git a/config.yml b/config.yml new file mode 100644 index 0000000..5cb780d --- /dev/null +++ b/config.yml @@ -0,0 +1,14 @@ +--- + environment: production + chdir: /webapp/binaryattraction + address: 127.0.0.1 + user: webapp + group: webapp + port: 12501 + pid: /webapp/binaryattraction/log/sinatra.pid + rackup: /webapp/binaryattraction/config.ru + log: /webapp/binaryattraction/log/sinatra.log + max_conns: 1024 + timeout: 30 + max_persistent_conns: 512 + daemonize: true