Skip to content

Instantly share code, notes, and snippets.

@jfreites
Created December 6, 2016 22:19
Show Gist options
  • Save jfreites/6c018315ec17d10e0d850fc8814251a8 to your computer and use it in GitHub Desktop.
Save jfreites/6c018315ec17d10e0d850fc8814251a8 to your computer and use it in GitHub Desktop.
Alice & Bob configuration .ini
// alice/vendor/config/dev.ini
;## This is the developer configuration file of Alice
;## On generation, this configuration will overwrite vendor/config/application.ini and local/config/application.ini
;## For documentation @see: /alice/vendor/config/application.ini
application.env="dev"
ns="dafitimx"
solr.url="http://127.0.0.1:8080/"
solr.cache_time=300
bob.url="http://bob.local/alice/"
image.host="http://static.dafiti.com.mx/"
static.host="http://alice.local/"
static.host_count=0
host="http://alice.local/"
memory.limit.worker="6G"
logfiles.path="/var/www/trunk/alice/tmp/"
;local.storage="Alice_Extension_Adapter_MySqlAdapter"
local.storage="Alice_Extension_Adapter_MemcacheAdapter"
memcached.host="localhost"
memcached.port="11211"
;remote.storage="Alice_Extension_Adapter_MySqlAdapter"
remote.storage="Alice_Extension_Adapter_MemcacheAdapter"
remote.memcached_host="localhost"
remote.memcached_port="11211"
country.iso="MX"
country.fk="57"
theme.route="default"
;## optional if local development is MySQL (localhost only!)
dev.mysql_host="localhost"
dev.mysql_user="root"
dev.mysql_pass="root"
dev.mysql_db="alice_migration"
show.profiling="true"
show.errors="true"
use.config_cache="false"
use.dev_tools="true"
prudsys.demo="false"
use.combined_static_files="false"
use.cached_view_filepaths="false"
bob.use_proxy="false"
bob.proxy=""
https.filter_enabled="false"
prudsys=false
prudsys.host="localhost"
prudsys.rde="ABC123"
prudsys.user="admin"
prudsys.pass="admin"
session.save_handler="memcache"
session.save_path="tcp://localhost:11211"
session.domain=""
mobile.api_enabled="false"
mobile.api_identifier="123456"
mobile.api_url="http://shop.mobile/"
mobile.api_authentication="false"
mobile.api_token="1234"
handle.tracking_live="false"
multilanguage.enabled="true"
mobile.enabled="true"
;## Number of products the worker imports per chunk
;## @var integer
worker.products.per.chunk=5000
tracking.providers="Gtm"
// bob/application/vendor/configs/dev.ini
;## LOCALE ##
resources.locale.default = "es_MX"
phpSettings.date.timezone = "America/Mexico_City"
;## DATABASE ##
resources.multidb.main.host = "localhost"
resources.multidb.main.username = "root"
resources.multidb.main.password = "root"
resources.multidb.main.dbname = "bob_local"
resources.multidb.main.profiler.enabled = true
resources.multidb.main.profiler.class = Zend_Db_Profiler_Firebug
;## CLI-USERS ##
cli.allowed_users.example-user = "seday,dafitimx,root,jfreites"
cli.memory_limit_cli = "6G"
;## CATALOG ##
catalog.image_base_url = "http://static.dafiti.com.mx"
catalog.image_directory = APPLICATION_ROOT "/data/media"
catalog.sku_suffix = "DFMX"
catalog.project_name_country = "Dafiti MX"
catalog.memory_limit_catalog = "6G"
export.memory_limit_export = "6G"
;## SOLR ##
solr.host = "127.0.0.1"
solr.port = 8080
; time in seconds to wait for other solr workers to finish their jobs before starting own job
solr.time_to_wait_for_other_workers = 2
solr.core = "/"
;## invoices
;subdirectory for different types of invoices are in use and should be created before, e.g. /merchants or /customers
invoices.save_path = APPLICATION_PATH "/../../vendor/shared/data/invoices"
;## optionalfeatures ##
optionalFeatures.supplierEditor.active = true
optionalFeatures.campaignEditor.active = false
optionalFeatures.notifyOnApplicationLock = false
;## ALICE URL, needed for sitemap generation ##
alice.hostname = "http://alice.local/"
; time in seconds to wait for other alice workers to finish their jobs before starting own job
alice.time_to_wait_for_other_workers = 2
; memory limit for worker (default '1G')
alice.memory_limit_worker = "8G"
; time limit for worker (default 120 sec)
alice.time_limit_worker = 120
;## GEARMAN SERVER##
gearman.server.host = "localhost"
;## development options ##
development.logging = true
;## DATABASE ##
resources.multidb.dbread.adapterNamespace = "Bob_Db_Adapter"
resources.multidb.dbread.adapter = "Pdo_Mysql"
;resources.multidb.dbread.host = "newdbslave"
;resources.multidb.dbread.host = "%db.params.host%"
;resources.multidb.dbread.username = "jatristain"
;resources.multidb.dbread.password = "d4f1t1M3x"
;resources.multidb.dbread.dbname = "bob_live"
resources.multidb.dbread.host = "localhost"
resources.multidb.dbread.username = "root"
resources.multidb.dbread.password = "root"
resources.multidb.dbread.dbname = "bob_local"
resources.multidb.dbread.charset = utf8
resources.multidb.dbread.default = true
resources.multidb.dbread.driver_options.1001 = 1 ; means PDO::MYSQL_ATTR_LOCAL_INFILE
resources.multidb.dbread.isBobDbAdapterReplication = false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment