simplex2/config.moon

26 lines
524 B
Plaintext

config = require "lapis.config"
import autoload from require "locator"
import sql_password, session_secret from autoload "secret"
config {"production", "development"}, ->
session_name "simplex"
secret session_secret
postgres ->
host "127.0.0.1"
user "postgres"
password sql_password
config "production", ->
postgres ->
database "simplex"
num_workers 4
code_cache "on"
port 8251
config "development", ->
postgres ->
database "dev.simplex"
num_workers 2
code_cache "off"
port 8250