Skip to content

Configuracion del app

sergio rodriguez edited this page Apr 27, 2016 · 5 revisions

Para configurar el ambiente local tienes que crear un archivo llamado application-development.groovy en el directorio _$HOME/.cte donde:

development es el nombre del ambiente a ejecutar

_$HOME/.cte es el home del archivo properties, ejemplo: /home/"user"/.cte

Ejemplo de archivo properties:

dataSource {
  pooled = true
  dbCreate = "none"
  driverClassName = "com.mysql.jdbc.Driver"
  username = "root"
  password = ""
  url = "jdbc:mysql://localhost/cte"
  properties {
    jmxEnabled = true
    initialSize = 5
    maxActive = 50
    minIdle = 5
    maxIdle = 25
    maxWait = 10000
    maxAge = 10 * 60000
    timeBetweenEvictionRunsMillis = 5000
    minEvictableIdleTimeMillis = 60000
    validationQuery = "SELECT 1"
    validationQueryTimeout = 3
    validationInterval = 15000
    testOnBorrow = true
    testWhileIdle = true
    testOnReturn = false
    jdbcInterceptors = "ConnectionState"
    defaultTransactionIsolation = java.sql.Connection.TRANSACTION_READ_COMMITTED
  }
}

grails.plugin.awssdk.accessKey = ""
grails.plugin.awssdk.secretKey = ""
grails.plugin.awssdk.bucketName = ""
grails.plugin.awssdk.url.content = "s3.amazonaws.com/"
grails.server.url='http://localhost:8080'

emailer{
  url='http://emailer.modulusuno.com/timone/services/modulus/'
  newUser='newUser'
  register='register'
  forgot='forgot'
  notificationIntegrated='companyIntegrated'
  clientProvider='clientProvider'
  emailAdmin='aqui va el admin'
  depositOrder='depositOrder'
  authorizeSaleOrder='authorizeSaleOrder'
  notificationProcessorPayroll='processorPayrolls'
}

recovery.register="${grails.server.url}/confirmation?token="
recovery.forgot="${grails.server.url}/recovery/show?token="

first.access.register="${grails.server.url}/activation?token="
url.processorPayrolls="${grails.server.url}/payroll/processorPayroll"

accepting.integrated="${grails.server.url}/company/show/"
rejected.integrated="${grails.server.url}/company/rejected/"
rejected.manager.integrated="${grails.server.url}/managerApplication/show/"
depositOrder.confirm.order ="${grails.server.url}/depositOrder/confirmDepositOrder/"
cashOutOrder.url="${grails.server.url}/cashOutOrder/show/"
iva=16

sepomex {
  url='http://sepomex.modulusuno.com/sepomex/'
}
Clone this wiki locally