mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-04-18 23:11:20 +00:00
Fix group
Fix scrypt time for production Fix nginx template path
This commit is contained in:
parent
2628cfe10e
commit
bfd866fa88
3 changed files with 5 additions and 2 deletions
|
@ -5,6 +5,8 @@ RAILS_ENV=production
|
|||
|
||||
ASSETS_PRECOMPILE=1
|
||||
|
||||
SCRYPT_MAX_TIME=0.5
|
||||
|
||||
# FIXME Disable workers + cluster mode for now.
|
||||
PUMA_WORKERS=0
|
||||
PUMA_MIN_THREADS=1
|
||||
|
|
|
@ -30,9 +30,10 @@ class Group < ActiveRecord::Base
|
|||
|
||||
validates_length_of :name, :maximum => 20
|
||||
|
||||
has_and_belongs_to_many :users
|
||||
has_many :groupers
|
||||
has_many :users, :through => :groupers
|
||||
has_and_belongs_to_many :users
|
||||
|
||||
belongs_to :founder, :class_name => "User", :optional => true
|
||||
|
||||
def to_s
|
||||
|
|
|
@ -67,7 +67,7 @@ server {
|
|||
}
|
||||
location /files/ {
|
||||
# try_files $uri $uri/ @puma;
|
||||
# alias root /var/www/files/;
|
||||
# alias root /var/www/public/files/;
|
||||
autoindex on;
|
||||
}
|
||||
location @puma {
|
||||
|
|
Loading…
Reference in a new issue