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