configuration

Symfony 2 loading custom configuration file

六月ゝ 毕业季﹏ 提交于 2020-01-22 13:55:28
问题 I want to add a new configuration file in Bundle/Resources/config. I've tried following http://symfony.com/doc/current/cookbook/bundles/extension.html , but it doesn't work as it should and I get There is no extension able to load the configuration for "mailbroker_mail_details" My files: MailbrokerMailDetailsExtension.php <?php namespace Mailbroker\MailDetailsBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use

Symfony 2 loading custom configuration file

旧街凉风 提交于 2020-01-22 13:55:10
问题 I want to add a new configuration file in Bundle/Resources/config. I've tried following http://symfony.com/doc/current/cookbook/bundles/extension.html , but it doesn't work as it should and I get There is no extension able to load the configuration for "mailbroker_mail_details" My files: MailbrokerMailDetailsExtension.php <?php namespace Mailbroker\MailDetailsBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use

Heroku-like deployment and environment configuration via EC2

蹲街弑〆低调 提交于 2020-01-22 12:16:08
问题 I really like the approach of a 12factor app, which you are kinda forced into, when you deploy an application to Heroku. For this question I'm particularly interested in setting environment variables for configuration, like one would do on Heroku. As far as I can tell, there's no way to change the ENV for one or multiple instances within the EC2 console (though it's seems to be possible to set 5 ENV vars when using elastic beanstalk). Therefore my next bet on an Ubuntu based system would be

How can I introduce a config file to Powershell scripts?

女生的网名这么多〃 提交于 2020-01-22 05:18:07
问题 Assume that I have a Powershell script called Foo.ps1 I would like to introduce an XML configuration file called Foo.ps1.config where I can specify my environment settings something like: <FunctionsDirectory> $ScriptDirectory\Functions </FunctionsDirectory> <ModulesDirectory> $ScriptDirectory\Modules </ModulesDirectory> And then I would like to load this configuration in the begining of Foo.ps1 so that I can import my modules and dot notate to the Functions directory. How can I achieve this

Defining common variables across multiple scripts?

那年仲夏 提交于 2020-01-21 08:50:30
问题 I have a number of Bash and Perl scripts which are unrelated in functionality, but are related in that they work within the same project. The fact that they work in the same project means that I commonly specify the same directories, the same project specific commands, the same keywords at the top of every script. Currently, this has not bitten me, but I understand that it would be easier to have all of these values in one place, then if something changes I can change a value once and have

Glassfish 3.1.1 suddenly stopped writing to server.log

一个人想着一个人 提交于 2020-01-21 04:39:45
问题 I changed one of the log levels in the admin console, and Glassfish 3.1.1 stopped writing anything into the domain1/logs/server.log. I since reverted the change and tried restarting the server a couple times. Here's the last thing it logged: [#|2012-02-20T16:44:53.738-0800|INFO|glassfish3.1.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=46; _ThreadName=Thread-7;|com.sun.webui.jsf.component.DropDown::The current value of component form1:basicTable:rowGroup1:6:col3

How to run aws configure in a travis deploy script?

佐手、 提交于 2020-01-21 04:07:10
问题 I am trying to get travis-ci to run a custom deploy script that uses awscli to push a deployment up to my staging server. In my .travis.yml file I have this: before_deploy: - 'curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"' - 'unzip awscli-bundle.zip' - './awscli-bundle/install -b ~/bin/aws' - 'export PATH=~/bin:$PATH' - 'aws configure' And I have set up the following environment variables: AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION with their

Log4j2 - configuring

你说的曾经没有我的故事 提交于 2020-01-21 03:54:05
问题 I am trying to adopt Log4j2 in my new project, but I get my logs in catalina.out , and the first one is always: ERROR StatusLogger Unable to locate a logging implementation, using SimpleLogger . It seems that I have done everything according to Log4j2 docs, but still. Here is what I have actually done: added log4j-api-2.0-beta3.jar to my project created a log4j2.xml file and put it in a location that is on the classpath (currently, in /usr/local/tomcat/home/lib . In fact, I took a sample file

How to create new log file for each application run

≡放荡痞女 提交于 2020-01-21 01:12:32
问题 As the title implies how can I create a new log file for each application run ? I know how to do it for minute/hour/etc. but not for app. run There is what I have for now: target name="Debug" archiveEvery="Hour" archiveFileName="${basedir}/logs/Debug.{#####}.txt" maxArchiveFiles="4" archiveNumbering="Sequence" xsi:type="File" fileName="${basedir}/logs/Debug.txt" layout="${date:format=HH\:mm\:ss} | ${level} | ${message} ${exception} ${exception:format=stacktrace}" But actually I dont need to

Tips for Handling large projects with Maven and IntelliJ IDEA

你离开我真会死。 提交于 2020-01-20 14:36:28
问题 I was reading this blog post about the experience of a team using Intellij Idea for large maven projects and have also looked at a similar question posted around 2 years back for IDEA v.10.0.2. One of the tips mentioned in the former made a whole lot of sense : Move C:\Users\$user\.IntelliJIdea12 into a folder not access-scanned by the antivirus. I have searched around for performance centric VM options and currently my idea64.exe.vmoptions looks like this : -Xms1200m -Xmx1200m -XX