49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# File 'lib/volt/config.rb', line 49
def defaults
app_name = File.basename(Dir.pwd)
{
app_name: app_name,
db_name: (ENV['DB_NAME'] || (app_name + '_' + Volt.env.to_s)).gsub('.', '_'),
db_host: ENV['DB_HOST'] || 'localhost',
db_port: (ENV['DB_PORT'] || 27_017).to_i,
db_driver: ENV['DB_DRIVER'] || 'mongo',
default_components: ['volt'],
compress_javascript: Volt.env.production?,
compress_css: Volt.env.production?,
abort_on_exception: true,
min_worker_threads: 1,
max_worker_threads: 10,
worker_timeout: 60
}
end
|