changing settings and deploy scripts, validating email
This commit is contained in:
parent
cba0f5477c
commit
453cb06691
4 changed files with 9 additions and 9 deletions
|
|
@ -21,6 +21,8 @@ class User
|
|||
|
||||
######## Making things work ########
|
||||
key :email, String
|
||||
validates_true_for :email, :logic => lambda {
|
||||
email.include?('@pivotallabs.com') || email.include?('@pivotalsf.com')}
|
||||
|
||||
def method_missing(method, *args)
|
||||
self.person.send(method, *args)
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@ Diaspora::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'
|
||||
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
|
||||
|
||||
# If you have no front-end server that supports something like X-Sendfile,
|
||||
# just comment this out and Rails will serve the files
|
||||
|
|
@ -29,7 +29,7 @@ Diaspora::Application.configure do
|
|||
|
||||
# Disable Rails's static asset server
|
||||
# In production, Apache or nginx will already do this
|
||||
config.serve_static_assets = true
|
||||
#config.serve_static_assets = true
|
||||
|
||||
# Enable serving of images, stylesheets, and javascripts from an asset server
|
||||
# config.action_controller.asset_host = "http://assets.example.com"
|
||||
|
|
@ -37,9 +37,6 @@ Diaspora::Application.configure do
|
|||
# Disable delivery errors, bad email addresses will be ignored
|
||||
# config.action_mailer.raise_delivery_errors = false
|
||||
|
||||
# Enable threaded mode
|
||||
# config.threadsafe!
|
||||
|
||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
||||
# the I18n.default_locale when a translation can not be found)
|
||||
config.i18n.fallbacks = true
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ require: []
|
|||
|
||||
max_persistent_conns: 512
|
||||
environment: production
|
||||
servers: 1
|
||||
servers: 4
|
||||
daemonize: true
|
||||
#chdir: /usr/applications/localhash/current
|
||||
#socket: /tmp/thin.sock
|
||||
port: 80
|
||||
socket: /tmp/thin.sock
|
||||
#port: 80
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
require 'config/environment'
|
||||
|
||||
remote_url = "http://tom.joindiaspora.com/"
|
||||
remote_url = "http://localhost:3000/"
|
||||
# Create seed user
|
||||
user = User.create!( :email => "tom@tom.joindiaspora.com",
|
||||
:password => "evankorth",
|
||||
|
|
|
|||
Loading…
Reference in a new issue